Creature / Dockerfile
Znfeoqm's picture
Update Dockerfile
58786c1 verified
raw
history blame contribute delete
449 Bytes
# Use a lightweight Python base image
FROM python:3.9-slim-buster
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the Flask application and your HTML file
COPY app.py .
COPY index.html .
# Expose the port Flask will run on
EXPOSE 7860
# Command to run the Flask application
CMD ["python", "app.py"]