Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
FROM registry.hf.space/enzostvs-deepsite:cpu-bbc7882
|
| 2 |
-
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
|
|
|
| 1 |
+
# FROM registry.hf.space/enzostvs-deepsite:cpu-bbc7882
|
| 2 |
+
FROM node:22
|
| 3 |
|
| 4 |
+
USER 1000
|
| 5 |
+
WORKDIR /usr/src/app
|
| 6 |
|
| 7 |
+
# Copy the rest of the application files to the container
|
| 8 |
+
COPY --chown=1000 . .
|
| 9 |
|
| 10 |
+
RUN npm install && npm run build
|
| 11 |
|
| 12 |
+
# Expose the application port (assuming your app runs on port 3000)
|
| 13 |
+
EXPOSE 3000
|
| 14 |
|
| 15 |
+
# Start the application
|
| 16 |
+
CMD ["npm", "start"]
|