Created
March 17, 2020 10:04
-
-
Save hacker-volodya/c42513a062829322f22ce2e83b5f7dae to your computer and use it in GitHub Desktop.
Dockerfile for poetry project
This file contains 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.8 | |
RUN mkdir /app | |
WORKDIR /app | |
RUN pip install poetry | |
RUN poetry config virtualenvs.create false | |
COPY poetry.lock pyproject.toml /app/ | |
RUN poetry install -n --no-root --no-dev | |
# poetry dependencies installed, here you may want to copy your project package, set command for container, etc. | |
# all dependencies was installed without virtualenv, so you don't have to use `poetry run` in container | |
COPY my_package /app/my_package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment