This commit is contained in:
2024-04-16 04:48:10 +03:00
parent 9b4184994f
commit 903c216966
17 changed files with 363 additions and 33 deletions

21
docker/app/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN pip install --upgrade pip
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN mkdir -p /usr/src/flask-demo-api/flask_demo_api
WORKDIR /usr/src/flask-demo-api
COPY ./poetry.lock .
COPY ./pyproject.toml .
RUN poetry install --without dev