Skip to content

Commit ac2258d

Browse files
committed
feat(docker) : Created a docker compoose for app
1 parent 3409098 commit ac2258d

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

.dockerignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#default
2+
Dockerfile
3+
.git
4+
.github
5+
docker-compose.yml
6+
7+
# dependencies
8+
/node_modules
9+
/.pnp
10+
.pnp.js
11+
12+
# testing
13+
/coverage
14+
15+
# next.js
16+
/.next/
17+
/out/
18+
19+
# production
20+
/build
21+
22+
# misc
23+
.DS_Store
24+
*.pem
25+
26+
# debug
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
.pnpm-debug.log*
31+
32+
# local env files
33+
.env*.local
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts
41+
42+
# vscode
43+
.vscode

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PORT=80

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ FROM node:16-alpine
22
COPY . .
33
RUN npm install
44
RUN npm run build
5+
ENV PORT 80
56
EXPOSE 80
67
CMD npm start

docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3"
2+
services:
3+
app:
4+
build: .
5+
ports:
6+
- 80:80
7+
restart: always

0 commit comments

Comments
 (0)