12 lines
267 B
Docker
12 lines
267 B
Docker
FROM python:3.10-alpine
|
|
|
|
RUN pip install poetry
|
|
|
|
WORKDIR .
|
|
COPY . .
|
|
|
|
RUN poetry config virtualenvs.create false \
|
|
&& poetry install $(test "$YOUR_ENV" == production && echo "--no-dev") --no-interaction --no-ansi
|
|
|
|
|
|
CMD ["poetry", "run", "python", "app/__main__.py"]
|