Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -10
Dockerfile
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
# Install Node.js
|
| 4 |
-
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
| 5 |
-
RUN apt-get install -y nodejs
|
| 6 |
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /code
|
|
@@ -16,10 +12,15 @@ COPY ./package-lock.json /code/package-lock.json
|
|
| 16 |
RUN npm install
|
| 17 |
|
| 18 |
# Copy Python application files
|
| 19 |
-
COPY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
#
|
| 22 |
-
|
| 23 |
|
| 24 |
-
# Start
|
| 25 |
-
CMD ["
|
|
|
|
| 1 |
+
FROM node:16
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /code
|
|
|
|
| 12 |
RUN npm install
|
| 13 |
|
| 14 |
# Copy Python application files
|
| 15 |
+
COPY ./app /code/app
|
| 16 |
+
|
| 17 |
+
# Install Python and necessary dependencies
|
| 18 |
+
RUN apt-get update && \
|
| 19 |
+
apt-get install -y python3-pip && \
|
| 20 |
+
pip3 install --no-cache-dir uvicorn fastapi
|
| 21 |
|
| 22 |
+
# Expose port
|
| 23 |
+
EXPOSE 7860
|
| 24 |
|
| 25 |
+
# Start Node.js application
|
| 26 |
+
CMD ["node", "index.js"]
|