core/Dockerfile

13 lines
374 B
Docker
Raw Normal View History

2024-02-25 16:32:36 +00:00
FROM python:alpine
WORKDIR /app
2024-02-25 16:29:32 +00:00
COPY . /app
2024-02-25 16:27:41 +00:00
2024-02-25 16:32:36 +00:00
RUN apk update && apk add --no-cache build-base icu-data-full curl python3-dev musl-dev postgresql-dev postgresql-client
RUN curl -sSL https://install.python-poetry.org | python
ENV PATH="${PATH}:/root/.local/bin"
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"]