backup_service/client/Dockerfile
2026-01-19 10:27:20 +03:00

21 lines
No EOL
555 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose the port used by the client web interface. This allows
# external browsers to connect to the configuration UI when the
# client runs in its own container. See dockercompose files for
# port mappings.
EXPOSE 8080
# The client runs indefinitely, sending backups according to its schedule
CMD ["python", "main.py"]