Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -15
Dockerfile
CHANGED
@@ -1,20 +1,9 @@
|
|
1 |
# Use an official Node runtime as the base image
|
2 |
FROM node:18
|
3 |
-
|
4 |
-
# Set the working directory in the container to /app
|
5 |
-
WORKDIR /app
|
6 |
-
|
7 |
# Clone the GitHub repository
|
8 |
RUN git clone https://github.com/severian42/New-Nexus.git .
|
9 |
-
|
10 |
-
|
11 |
-
RUN npm i
|
12 |
-
|
13 |
-
# Build the application
|
14 |
RUN npm run build
|
15 |
-
|
16 |
-
|
17 |
-
#EXPOSE 3000
|
18 |
-
|
19 |
-
# Define the command to run the application
|
20 |
-
CMD [ "npm", "run", "start" ]
|
|
|
1 |
# Use an official Node runtime as the base image
|
2 |
FROM node:18
|
|
|
|
|
|
|
|
|
3 |
# Clone the GitHub repository
|
4 |
RUN git clone https://github.com/severian42/New-Nexus.git .
|
5 |
+
WORKDIR "New-Nexus"
|
6 |
+
RUN npm i
|
|
|
|
|
|
|
7 |
RUN npm run build
|
8 |
+
EXPOSE 3000
|
9 |
+
CMD ["npm", "run", "start"]
|
|
|
|
|
|
|
|