core/Dockerfile

13 lines
374 B
Docker
Raw Normal View History

2024-02-19 06:56:23 +00:00
FROM python:alpine
2023-10-06 00:22:37 +00:00
WORKDIR /app
2023-10-23 14:47:11 +00:00
COPY . /app
2024-02-19 08:13:05 +00: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 10:25:24 +00:00
RUN curl -sSL https://install.python-poetry.org | python
ENV PATH="${PATH}:/root/.local/bin"
2024-02-19 06:56:23 +00:00
RUN poetry config virtualenvs.create false && poetry install --only main
2024-02-17 10:21:52 +00:00
EXPOSE 8000
2024-02-17 10:21:52 +00:00
CMD ["python", "server.py"]