Skip to content

Commit 528fcd8

Browse files
fix
1 parent 8797890 commit 528fcd8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Dockerfile

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
FROM python:3.10-slim
1+
# Use the official Python image
2+
FROM python:3.11
23

4+
# Create and change to the app directory
35
WORKDIR /app
6+
COPY api/requirements.txt ./api/
47

5-
COPY ./api .
6-
8+
# Install dependencies for the api folder
9+
WORKDIR /app/api
710
RUN pip install --no-cache-dir -r requirements.txt
811

12+
# Copy the local code to the container image
13+
WORKDIR /app
14+
COPY . .
15+
16+
# Expose port 3000
917
EXPOSE 3000
1018

11-
CMD ["python", "main.py"]
19+
# Run the web service on container startup
20+
CMD ["gunicorn", "-c", "api/gunicorn_config.py", "api.main:app"]

0 commit comments

Comments
 (0)