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