Skip to content

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ntchinda-Giscard committed May 25, 2024
1 parent 4223940 commit cd3070e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ WORKDIR /app
COPY requirements.txt .

# Install the dependencies
# RUN apt-get update \
# && apt-get install -y --no-install-recommends --no-install-suggests \
# && pip install --no-cache-dir --upgrade pip
RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
&& pip install --no-cache-dir --upgrade pip

RUN pip install --no-cache-dir -r requirements.txt

# Copy the FastAPI app into the container
COPY . .

# Expose the port that the app runs on
ENV PYTHONUNBUFFERED=1
EXPOSE 8000

# Command to run the app with Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit cd3070e

Please sign in to comment.