We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07f630d + 042b9b9 commit ab000a9Copy full SHA for ab000a9
.dockerignore
@@ -0,0 +1,3 @@
1
+node_modules
2
+npm-debug.log
3
+build
Dockerfile
@@ -0,0 +1,22 @@
+# Using latest Node.js base image
+FROM node:18
+
4
+# Set the working directory in the container
5
+WORKDIR /usr/src/app
6
7
+# Copy package.json and package-lock.json
8
+COPY package*.json ./
9
10
+# Install app dependencies
11
+RUN npm install
12
+# If you are building your code for production
13
+# RUN npm ci --omit=dev
14
15
+# Bundle app source
16
+COPY . .
17
18
+# Expose the PORT
19
+EXPOSE 3000
20
21
+# Start the server by building the app
22
+CMD [ "npm", "start" ]
0 commit comments