traefik-helper/Dockerfile

25 lines
572 B
Docker
Raw Normal View History

2024-01-13 19:51:28 +00:00
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.10-slim
2024-01-13 19:59:10 +00:00
# Install Docker
2024-01-13 19:59:52 +00:00
RUN apt update
2024-01-13 19:59:10 +00:00
RUN apt install curl -y
RUN curl -sSL https://s.fascinated.cc/s/install-docker | bash
2024-01-13 19:51:28 +00:00
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
# Install pip requirements
COPY requirements.txt .
RUN python -m pip install -r requirements.txt
WORKDIR /app
COPY . /app
2024-01-13 19:55:54 +00:00
ENV CONFIG_FILE=/app/config.yml
2024-01-13 19:51:28 +00:00
CMD ["python", "src/manage.py"]