Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -21,14 +21,16 @@ WORKDIR /app
|
|
21 |
|
22 |
|
23 |
# Copy the project files into the container
|
24 |
-
COPY . /app
|
25 |
|
26 |
COPY --chown=user ./requirements.txt requirements.txt
|
27 |
# Install Python dependencies
|
28 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
29 |
|
|
|
30 |
# Expose the application's port
|
31 |
EXPOSE 8000
|
32 |
|
|
|
33 |
# Start the FastAPI application
|
34 |
CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "main:app", "--bind", "0.0.0.0:8000", "--workers", "4"]
|
|
|
21 |
|
22 |
|
23 |
# Copy the project files into the container
|
24 |
+
# COPY . /app
|
25 |
|
26 |
COPY --chown=user ./requirements.txt requirements.txt
|
27 |
# Install Python dependencies
|
28 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
29 |
|
30 |
+
COPY --chown=user . /app
|
31 |
# Expose the application's port
|
32 |
EXPOSE 8000
|
33 |
|
34 |
+
|
35 |
# Start the FastAPI application
|
36 |
CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "main:app", "--bind", "0.0.0.0:8000", "--workers", "4"]
|