21 lines
456 B
Docker
21 lines
456 B
Docker
# Use a Python base image
|
|
FROM python:3.9-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy the requirements file if you have one
|
|
#COPY requirements.txt requirements.txt
|
|
|
|
# Install any necessary packages
|
|
#RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy your HTML directory
|
|
COPY ./index.html ./index.html
|
|
|
|
# Expose the port you want to serve on
|
|
EXPOSE 80
|
|
|
|
# Start the Python server
|
|
CMD ["python", "-m", "http.server", "80"]
|