change copy source of app code
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -14,8 +14,8 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
| 14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 15 |
# Copy the rest of the application code from the host to the container
|
| 16 |
# Again, ensure the copied files are owned by 'user'
|
| 17 |
-
COPY --chown=user
|
| 18 |
# Specify the command to run when the container starts
|
| 19 |
-
CMD ["uvicorn", "app:
|
| 20 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
|
| 21 |
|
|
|
|
| 14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 15 |
# Copy the rest of the application code from the host to the container
|
| 16 |
# Again, ensure the copied files are owned by 'user'
|
| 17 |
+
COPY --chown=user ./app /app
|
| 18 |
# Specify the command to run when the container starts
|
| 19 |
+
CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]
|
| 20 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
|
| 21 |
|