Files
drb-server/Dockerfile
Logan Cusano 5c86185ef5
All checks were successful
release-tag / release-image (push) Successful in 3m42s
DRB Tests / drb_mocha_tests (push) Successful in 55s
Update port in dockerfile
2024-05-26 21:45:08 -04:00

22 lines
512 B
Docker

# Use the official Node.js image as the base image
FROM node:20
# Set the working directory inside the container
WORKDIR /server
# Copy package.json and package-lock.json (if available) to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install -g node-gyp
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Expose the port on which your Node.js application will run
EXPOSE 3420
# Command to run the Node.js application
CMD ["node", "."]