Skip to content

Commit 6159bd7

Browse files
authored
dockerfile setup
1 parent 987ff50 commit 6159bd7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM node:18
2+
3+
# Create app directory
4+
RUN mkdir -p /workspace/
5+
WORKDIR /workspace/
6+
7+
# Install app dependencies
8+
COPY package*.json ./
9+
RUN npm install
10+
11+
# If you are building your code for production
12+
# RUN npm ci --omit=dev
13+
14+
# Bundle app source
15+
COPY . .
16+
17+
# Expose port 3000
18+
EXPOSE 3000
19+
20+
# Run the server program
21+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)