Skip to content

Commit 9d80bad

Browse files
Create Dockerfile
1 parent 89178b1 commit 9d80bad

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.12-slim
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy the current directory contents into the container
8+
COPY . .
9+
10+
# Install dependencies
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Expose the port the app runs on
14+
EXPOSE 5000
15+
16+
# Run the application
17+
CMD ["python", "app.py"]

0 commit comments

Comments
 (0)