Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -7,9 +7,6 @@ RUN apt-get install -y nodejs
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /code
|
| 9 |
|
| 10 |
-
# Copy Python requirements file and install dependencies
|
| 11 |
-
|
| 12 |
-
|
| 13 |
# Copy Node.js application files
|
| 14 |
COPY ./index.js /code/index.js
|
| 15 |
COPY ./package.json /code/package.json
|
|
@@ -21,5 +18,8 @@ RUN npm install
|
|
| 21 |
# Copy Python application files
|
| 22 |
COPY . .
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# Start both Python and Node.js applications
|
| 25 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"
|
|
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /code
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Copy Node.js application files
|
| 11 |
COPY ./index.js /code/index.js
|
| 12 |
COPY ./package.json /code/package.json
|
|
|
|
| 18 |
# Copy Python application files
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
+
# Install uvicorn and other Python dependencies
|
| 22 |
+
RUN pip install uvicorn huggingface_hub transformers
|
| 23 |
+
|
| 24 |
# Start both Python and Node.js applications
|
| 25 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|