Files
image-drop/Dockerfile

25 lines
476 B
Docker

# syntax=docker/dockerfile:1.7
FROM python:3.11-slim
WORKDIR /file_drop
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir python-multipart
# Copy app code
COPY . /file_drop
# Defaults (can be overridden via compose env)
ENV HOST=0.0.0.0 \
PORT=8080 \
STATE_DB=/file_drop/data/state.db
EXPOSE 8080
CMD ["python", "main.py"]