Spaces:
Sleeping
Sleeping
GPTfree api
commited on
Update Dockerfile
Browse files- Dockerfile +7 -9
Dockerfile
CHANGED
@@ -7,19 +7,17 @@ WORKDIR /app
|
|
7 |
# Clone the Rammerhead repository
|
8 |
RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
|
9 |
|
10 |
-
#
|
11 |
-
RUN npm install
|
12 |
|
13 |
-
#
|
14 |
-
RUN npm
|
15 |
|
16 |
-
#
|
17 |
-
|
18 |
-
# ADD your-config.js /app/src/config.js
|
19 |
-
# ADD your-config.js /app/config.js
|
20 |
|
21 |
# Expose the necessary port (assuming 8080 is the default, update if needed)
|
22 |
EXPOSE 8080
|
23 |
|
24 |
# Start the Rammerhead server
|
25 |
-
CMD ["node", "src/server.js"]
|
|
|
7 |
# Clone the Rammerhead repository
|
8 |
RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
|
9 |
|
10 |
+
# Ensure the latest npm version is used
|
11 |
+
RUN npm install -g npm@latest
|
12 |
|
13 |
+
# Install dependencies safely
|
14 |
+
RUN npm install --legacy-peer-deps
|
15 |
|
16 |
+
# Build the project
|
17 |
+
RUN npm run build || npm run bstart
|
|
|
|
|
18 |
|
19 |
# Expose the necessary port (assuming 8080 is the default, update if needed)
|
20 |
EXPOSE 8080
|
21 |
|
22 |
# Start the Rammerhead server
|
23 |
+
CMD [ "node", "src/server.js" ]
|