Spaces:
Sleeping
Sleeping
File size: 651 Bytes
f87725d 58a2ac1 d9f0914 58a2ac1 d9f0914 f87725d d9f0914 f87725d c94e6b6 a50c7f7 c94e6b6 f87725d a50c7f7 f87725d 58a2ac1 d9f0914 58a2ac1 c94e6b6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use an official Node.js runtime (lock to v16 compatible with [email protected])
FROM node:16
# Set the working directory in the container
WORKDIR /app
# Clone the Rammerhead repository
RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
# Ensure a compatible npm version (do not upgrade beyond [email protected])
RUN npm install -g [email protected]
# Install dependencies (use --legacy-peer-deps to handle potential dependency conflicts)
RUN npm install --legacy-peer-deps
# Build the project
RUN npm run build
# Expose the necessary port (adjust if the server uses a different port)
EXPOSE 8080
# Start the Rammerhead server
CMD [ "node", "src/server.js" ]
|