Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nneji123 authored Jan 7, 2024
1 parent 0d5f9e2 commit e78b519
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Use an official Python runtime as a base image
FROM python:3.9
FROM python:3.11

# Set the working directory in the container
WORKDIR /app

# Copy the requirements file into the container at /app
COPY requirements.txt /app/
COPY api/requirements.txt /app/

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
Expand All @@ -17,4 +17,6 @@ COPY . /app/
EXPOSE 8090

# Run Uvicorn when the container launches
CMD ["uvicorn", "api.asgi:api", "--host", "0.0.0.0", "--port", "8090", "--reload"]
# CMD ["uvicorn", "api.asgi:api", "--host", "0.0.0.0", "--port", "8090", "--reload"]

# CMD ["python", "api/asgi.py"]

0 comments on commit e78b519

Please sign in to comment.