Portfolio/Dockerfile

18 lines
314 B
Docker
Raw Permalink Normal View History

2024-12-30 23:07:58 +00:00
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy the application files
COPY app/ /app
# Install dependencies
RUN pip install -r requirements.txt
# Expose the port the app runs on
EXPOSE 5000
# Run the application
CMD ["python", "app.py"]