File tree Expand file tree Collapse file tree 3 files changed +31
-26
lines changed Expand file tree Collapse file tree 3 files changed +31
-26
lines changed Original file line number Diff line number Diff line change
1
+ # javascript
1
2
** /node_modules /
3
+ .next
4
+ .eslintrc.js
5
+
6
+ # docker
7
+ Dockerfile *
8
+ docker-compose *
9
+ .dockerignore
10
+
11
+ # build/test/deploy
2
12
** /dist
3
- npm-debug.log
13
+ build
14
+ scripts
15
+ .env
16
+ .env.local
4
17
.coverage
5
18
.coverage. *
6
- .env
7
19
.aws
8
- build
9
- scripts
20
+
21
+ # git
10
22
.git
11
23
.gitignore
12
- .next
13
- README.md
14
- LICENSE
15
- Dockerfile *
16
- docker-compose *
17
- .dockerignore
24
+ .gitlab-ci.yml
25
+
26
+ # log
18
27
* .log
19
28
* .log *
29
+
30
+ # editor
20
31
.vscode
21
- .DS_Store
22
- .gitignore
23
32
.editorconfig
24
- .env
25
- .env.local
26
- .gitlab-ci.yml
27
- .eslintrc.js
28
33
* .swp
34
+
35
+ # other
36
+ README.md
37
+ LICENSE
38
+ .DS_Store
Original file line number Diff line number Diff line change 1
1
FROM node:alpine AS build
2
2
WORKDIR /app
3
+ # COPY below depends on .dockerignore to exclude node_modules, .next, etc.
3
4
COPY . .
4
5
RUN npm ci
5
6
RUN npm run build
6
-
7
- FROM node:alpine AS run
8
- WORKDIR /app
9
- COPY --from=build /app/package*.json .
10
- COPY --from=build /app/.next .
11
- RUN npm ci
12
- ENTRYPOINT ["npm" , "run" , "start" ]
7
+ ENTRYPOINT ["npm" , "run" , "start" ]
13
8
14
9
EXPOSE 3000
Original file line number Diff line number Diff line change 1
1
FROM node:alpine
2
2
WORKDIR /app
3
- COPY package*.json .
3
+ # COPY below depends on .dockerignore to exclude node_modules, .next, etc.
4
+ COPY . .
4
5
RUN npm ci
5
6
RUN npm run build
6
- COPY . .
7
7
ENTRYPOINT ["npm", "run", "dev"]
8
8
9
- EXPOSE 3000
9
+ EXPOSE 3000
You can’t perform that action at this time.
0 commit comments