2023-09-28 15:51:28 +03:00
|
|
|
FROM python:slim
|
2023-10-06 03:22:37 +03:00
|
|
|
WORKDIR /app
|
2023-10-23 17:47:11 +03:00
|
|
|
COPY . /app
|
|
|
|
|
2023-11-23 00:19:15 +03:00
|
|
|
RUN apt-get update && apt-get install -y git gcc curl postgresql && \
|
2023-10-23 17:47:11 +03: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-23 00:19:15 +03:00
|
|
|
CMD ["python", "server.py"]
|