Files
KomPage/Dockerfile

21 lines
582 B
Docker

# Use the official Python image as the base image
FROM python:3.13-slim
# Set the working directory in the container
WORKDIR /app
# Copy the application files into the container
COPY . /app
# Install dependencies with an external pip index
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
--extra-index-url https://git.theprivateserver.de/api/packages/KomSuite/pypi/simple/
# Expose the port the app runs on
EXPOSE 5001
# Set the default command to run the application using hypercorn
# run main.py using uv run python
CMD ["python", "main.py"]