Files
simple-nanoshare/Dockerfile
T
daniel156161 f65ef26d42
Build and Push Docker Container / build-and-push (push) Successful in 1m59s
create uploads volume in dockerfile
2025-10-25 16:22:22 +02:00

21 lines
505 B
Docker

FROM python:3.13-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libssl-dev && \
rm -rf /var/lib/apt/lists/*
# Install app
COPY . /app
WORKDIR /app
VOLUME ["/app/uploads"]
# Install dependencies
RUN pip install --upgrade pip && \
pip install --root-user-action=ignore -r requirements.txt
EXPOSE 8000
# Starten Sie Ihre Anwendung
CMD ["hypercorn", "run:app", "--bind", "0.0.0.0:8000", "--workers", "1", "--websocket-ping-interval", "20", "--access-logfile", "-"]