Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
|
@@ -17,7 +17,7 @@ RUN pip install --no-cache-dir \
|
|
| 17 |
# Create data directory with proper permissions
|
| 18 |
RUN mkdir -p /data && chown -R user:user /data
|
| 19 |
|
| 20 |
-
# Copy application files
|
| 21 |
COPY --chown=user:user app.py /app/
|
| 22 |
COPY --chown=user:user index.html /app/
|
| 23 |
|
|
@@ -27,4 +27,3 @@ USER user
|
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 30 |
-
|
|
|
|
| 17 |
# Create data directory with proper permissions
|
| 18 |
RUN mkdir -p /data && chown -R user:user /data
|
| 19 |
|
| 20 |
+
# Copy application files directly to /app
|
| 21 |
COPY --chown=user:user app.py /app/
|
| 22 |
COPY --chown=user:user index.html /app/
|
| 23 |
|
|
|
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|