uploader/Dockerfile

12 lines
368 B
Docker
Raw Normal View History

2023-09-27 23:05:14 +00:00
FROM python:slim
WORKDIR /app
2023-12-02 05:44:06 +00:00
COPY . /app
RUN apt-get update && apt-get install -y git gcc curl postgresql && \
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-09-27 23:05:14 +00:00
CMD ["python", "main.py"]