mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-16 01:36:17 +00:00
use poetry
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user