core/Dockerfile

14 lines
453 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
2024-01-25 19:41:27 +00:00
# Run server when the container launches
2024-01-25 19:55:00 +00:00
CMD granian --no-ws --host 0.0.0.0 --port 8080 --interface asgi main:app