Skip to content

Commit d741acf

Browse files
authored
Create Dockerfile
1 parent 94fd98b commit d741acf

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Dockerfile

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

0 commit comments

Comments
 (0)