core/Dockerfile

16 lines
414 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
EXPOSE 8000
2024-01-25 19:41:27 +00:00
# Run server when the container launches
CMD python server.py