Skip to content

Commit a351fbb

Browse files
committed
Added Dockerfile for containerizing the application
1 parent 68d0ef1 commit a351fbb

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎Dockerfile‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:20
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
EXPOSE 1234
14+
15+
CMD ["npm", "start"]

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "JavaScript Snake<br/> By Patrick Gillespie<br/> License: MIT<br/> http://patorjk.com/games/snake",
55
"scripts": {
6-
"start": "parcel src/index.html --open",
6+
"start": "parcel src/index.html",
77
"build": "parcel build src/index.html",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},

0 commit comments

Comments
 (0)