1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-16 01:36:17 +00:00

use poetry

This commit is contained in:
mihalin
2022-01-18 03:21:28 +03:00
parent 4aced9af91
commit 067fbc2736
4 changed files with 924 additions and 5 deletions

View File

@@ -1,11 +1,17 @@
FROM python:3.8-buster
COPY . /app
ENV PYTHONUNBUFFERED=1 \
POETRY_VERSION=1.1.2 \
POETRY_VIRTUALENVS_CREATE="false"
RUN pip install "poetry==$POETRY_VERSION"
WORKDIR /app
RUN pip install --upgrade pip && \
pip install -r requirements.txt
COPY pyproject.toml poetry.lock docker-entrypoint.sh ./
RUN poetry install --no-interaction --no-ansi --no-dev
COPY . /app
EXPOSE 80