Upload folder using huggingface_hub
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -7,8 +7,9 @@ WORKDIR /app
|
|
| 7 |
# Install requirements
|
| 8 |
RUN pip install --no-cache-dir fastapi>=0.104.0 uvicorn>=0.24.0 pydantic>=2.0.0 requests>=2.25.0
|
| 9 |
|
| 10 |
-
# Copy the standalone app
|
| 11 |
-
|
|
|
|
| 12 |
|
| 13 |
# Expose port 8000
|
| 14 |
EXPOSE 8000
|
|
|
|
| 7 |
# Install requirements
|
| 8 |
RUN pip install --no-cache-dir fastapi>=0.104.0 uvicorn>=0.24.0 pydantic>=2.0.0 requests>=2.25.0
|
| 9 |
|
| 10 |
+
# Copy the standalone app
|
| 11 |
+
# When deployed to HF, the Dockerfile is moved to root, so server/ contains the app
|
| 12 |
+
COPY server/standalone_app.py /app/standalone_app.py
|
| 13 |
|
| 14 |
# Expose port 8000
|
| 15 |
EXPOSE 8000
|