Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
upayanmazumder committed Nov 28, 2024
1 parent 8797890 commit 528fcd8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
FROM python:3.10-slim
# Use the official Python image
FROM python:3.11

# Create and change to the app directory
WORKDIR /app
COPY api/requirements.txt ./api/

COPY ./api .

# Install dependencies for the api folder
WORKDIR /app/api
RUN pip install --no-cache-dir -r requirements.txt

# Copy the local code to the container image
WORKDIR /app
COPY . .

# Expose port 3000
EXPOSE 3000

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

0 comments on commit 528fcd8

Please sign in to comment.