Spaces:
Sleeping
Sleeping
GPTfree api
commited on
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Use an official Node.js runtime
|
2 |
FROM node:16
|
3 |
|
4 |
# Set the working directory in the container
|
@@ -7,16 +7,16 @@ WORKDIR /app
|
|
7 |
# Clone the Rammerhead repository
|
8 |
RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
|
9 |
|
10 |
-
# Ensure
|
11 |
-
RUN npm install -g npm@
|
12 |
|
13 |
-
# Install dependencies
|
14 |
RUN npm install --legacy-peer-deps
|
15 |
|
16 |
# Build the project
|
17 |
-
RUN npm run build
|
18 |
|
19 |
-
# Expose the necessary port (
|
20 |
EXPOSE 8080
|
21 |
|
22 |
# Start the Rammerhead server
|
|
|
1 |
+
# Use an official Node.js runtime (lock to v16 compatible with [email protected])
|
2 |
FROM node:16
|
3 |
|
4 |
# Set the working directory in the container
|
|
|
7 |
# Clone the Rammerhead repository
|
8 |
RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
|
9 |
|
10 |
+
# Ensure a compatible npm version (do not upgrade beyond [email protected])
|
11 |
+
RUN npm install -g npm@8.19.4
|
12 |
|
13 |
+
# Install dependencies (use --legacy-peer-deps to handle potential dependency conflicts)
|
14 |
RUN npm install --legacy-peer-deps
|
15 |
|
16 |
# Build the project
|
17 |
+
RUN npm run build
|
18 |
|
19 |
+
# Expose the necessary port (adjust if the server uses a different port)
|
20 |
EXPOSE 8080
|
21 |
|
22 |
# Start the Rammerhead server
|