File size: 446 Bytes
06cab33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Set the base image using Python 3.12 and Debian Bookworm
FROM python:3.12-slim-bookworm
# Set the working directory to /app
WORKDIR /app
# Copy only the necessary files to the working directory
COPY . /app
# Install the requirements
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
# Expose the port the app runs on
EXPOSE 80
# Run the app with the Litestar CLI
CMD ["litestar", "run", "--host", "0.0.0.0", "--port", "80"] |