Created
April 7, 2023 18:37
-
-
Save goltsevnet/9d6e9da3be592169594c9a9ac1f30760 to your computer and use it in GitHub Desktop.
dockerfile for django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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