Skip to content

Commit c20267a

Browse files
committed
added Dockerfile
1 parent 7c78873 commit c20267a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use a Python base image
2+
FROM python:3.12
3+
4+
# Set working directory
5+
WORKDIR /api
6+
7+
# Copy requirements.txt and install dependencies
8+
COPY requirements.txt ./
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
11+
# Copy the rest of the application code
12+
COPY . .
13+
14+
# Expose the port the backend runs on
15+
EXPOSE 5000
16+
17+
# Start the backend
18+
#CMD ["python", "index.py"]
19+
CMD ["flask", "--app", "api/index.py", "run", "--debug"]
20+

0 commit comments

Comments
 (0)