Skip to content

Commit 2f20070

Browse files
authored
Create Dockerfile
1 parent a5320aa commit 2f20070

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

myapp/Dockerfile

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

0 commit comments

Comments
 (0)