azicre / Dockerfile
txtorg's picture
Create Dockerfile
d58f7d4 verified
Raw
History Blame Contribute Delete
510 Bytes
# Use a Node.js base image
FROM node:16
# Set the working directory inside the container
WORKDIR /app
# Clear any existing files in the /app directory
RUN rm -rf /app/*
# Clone the repository's 'new' branch
RUN git clone --branch new https://github.com/ReirLair/NewR.git .
# Set permissions for the /app directory and its contents to 755
RUN chmod -R 777 /app
# Install required packages from package.json
RUN npm install
# Expose port 7860
EXPOSE 7860
# Run the server.js file
CMD ["node", "server.js"]