Skip to content

Commit 444e235

Browse files
committed
Dockerized!
1 parent 0d63068 commit 444e235

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
npm-debug.log
3+
build

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Using latest Node.js base image
2+
FROM node:18
3+
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

Comments
 (0)