15 lines
378 B
Docker
15 lines
378 B
Docker
# Use an official Python runtime as a parent image
|
|
FROM python:3.9-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy the current directory contents into the container at /usr/src/app
|
|
COPY . .
|
|
|
|
# Expose port 8080 for the HTTP server
|
|
EXPOSE 8080
|
|
|
|
# Run the application using Python's built-in HTTP server
|
|
CMD ["python3", "-m", "http.server", "8080"]
|