21 lines
505 B
Docker
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", "-"]
|