core/Dockerfile

13 lines
367 B
Docker
Raw Normal View History

2023-09-28 12:51:28 +00:00
FROM python:slim
2023-10-06 00:22:37 +00:00
WORKDIR /app
2023-10-23 14:47:11 +00:00
COPY . /app
2023-11-22 21:19:15 +00:00
RUN apt-get update && apt-get install -y git gcc curl postgresql && \
2023-10-23 14:47:11 +00:00
curl -sSL https://install.python-poetry.org | python - && \
echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \
. ~/.bashrc && \
poetry config virtualenvs.create false && \
poetry install --no-dev
2023-11-22 21:19:15 +00:00
CMD ["python", "server.py"]