timetracker/devcontainer.Dockerfile

25 lines
550 B
Docker
Raw Permalink Normal View History

2024-11-09 10:22:21 +00:00
FROM python:3.13-slim
# Set up environment
ENV PYTHONUNBUFFERED=1
WORKDIR /workspace
# Install Poetry
2024-11-09 10:56:20 +00:00
RUN apt-get update && apt-get install -y \
curl \
make \
npm \
2024-11-09 10:22:21 +00:00
&& rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:$PATH"
# Copy pyproject.toml and poetry.lock for dependency installation
COPY pyproject.toml poetry.lock* ./
RUN poetry install --no-root
# Copy the rest of the application code
COPY . .
# Set up Django development server
EXPOSE 8000