Files
core/Dockerfile

13 lines
374 B
Docker
Raw Normal View History

2024-02-19 09:56:23 +03:00
FROM python:alpine
2023-10-06 03:22:37 +03:00
WORKDIR /app
2023-10-23 17:47:11 +03:00
COPY . /app
2024-02-19 11:13:05 +03:00
RUN apk update && apk add --no-cache build-base icu-data-full curl python3-dev musl-dev postgresql-dev postgresql-client
2024-02-17 13:25:24 +03:00
RUN curl -sSL https://install.python-poetry.org | python
ENV PATH="${PATH}:/root/.local/bin"
2024-02-19 09:56:23 +03:00
RUN poetry config virtualenvs.create false && poetry install --only main
2024-02-17 13:21:52 +03:00
EXPOSE 8000
2024-02-17 13:21:52 +03:00
CMD ["python", "server.py"]