Rammerhead / Dockerfile
GPTfree api
Update Dockerfile
c94e6b6 verified
raw
history blame
568 Bytes
# Use an official Node.js runtime as a parent image
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 the latest npm version is used
RUN npm install -g npm@latest
# Install dependencies safely
RUN npm install --legacy-peer-deps
# Build the project
RUN npm run build || npm run bstart
# Expose the necessary port (assuming 8080 is the default, update if needed)
EXPOSE 8080
# Start the Rammerhead server
CMD [ "node", "src/server.js" ]