dockerfile fix

This commit is contained in:
Untone 2024-02-19 09:56:23 +03:00
parent f74358be76
commit aa55e952aa

View File

@ -1,11 +1,11 @@
FROM python:alpine3.18
FROM python:alpine
WORKDIR /app
COPY . /app
RUN apk update && apk add --no-cache git gcc curl postgresql-client
RUN apk update && apk add --no-cache build-base git gcc curl python3-dev musl-dev postgresql-dev
RUN curl -sSL https://install.python-poetry.org | python
ENV PATH="${PATH}:/root/.local/bin"
RUN poetry config virtualenvs.create false && poetry install --no-dev
RUN poetry config virtualenvs.create false && poetry install --only main
EXPOSE 8000