Add server docker file and related action tests
Some checks failed
DRB Build Tests / build (push) Failing after 15s
DRB Build Tests / drb_build_and_test (push) Failing after 1m2s

This commit is contained in:
Logan Cusano
2024-04-28 04:34:15 -04:00
parent 4bb8038a1d
commit 63ccfa70d3
2 changed files with 52 additions and 0 deletions

20
server/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# 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
# Copy the rest of the application code to the working directory
COPY . .
# Expose the port on which your Node.js application will run
EXPOSE 3000
# Command to run the Node.js application
CMD ["node", "server.js"]