Skip to content

Instantly share code, notes, and snippets.

@goltsevnet
Created April 7, 2023 18:37
Show Gist options
  • Select an option

  • Save goltsevnet/9d6e9da3be592169594c9a9ac1f30760 to your computer and use it in GitHub Desktop.

Select an option

Save goltsevnet/9d6e9da3be592169594c9a9ac1f30760 to your computer and use it in GitHub Desktop.
dockerfile for django
FROM python:3.11.2-slim
WORKDIR /opt/project
RUN pip3 install --upgrade pip
RUN apt-get update && apt-get upgrade -y && apt-get autoremove && apt-get autoclean
RUN apt-get install --no-install-recommends -y
RUN pip3 install --no-cache-dir poetry
COPY ./pyproject.toml /opt/project
RUN poetry config virtualenvs.create false
RUN poetry install
RUN poetry install --with dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment