Skip to content

Commit

Permalink
UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzasaverio committed Feb 6, 2024
1 parent 4155135 commit 28fa30f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Use an official Python runtime with NVIDIA CUDA support
# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /code

WORKDIR /app
# Copy the current directory contents into the container at /code
COPY ./app /code/app
COPY requirements.txt /code/

# Copy your application files
COPY . /app

# Install Python and FastAPI dependencies
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

ENV PYTHONPATH=/code
EXPOSE 8000

CMD uvicorn main:app --port=${PORT:-8000} --host=0.0.0.0
# Run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit 28fa30f

Please sign in to comment.