Skip to content

Commit bb5edb1

Browse files
Fix copy errors in web client dockerfile
1 parent 9480834 commit bb5edb1

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

src/Web/client/.dockerignore

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
1+
# javascript
12
**/node_modules/
3+
.next
4+
.eslintrc.js
5+
6+
# docker
7+
Dockerfile*
8+
docker-compose*
9+
.dockerignore
10+
11+
# build/test/deploy
212
**/dist
3-
npm-debug.log
13+
build
14+
scripts
15+
.env
16+
.env.local
417
.coverage
518
.coverage.*
6-
.env
719
.aws
8-
build
9-
scripts
20+
21+
# git
1022
.git
1123
.gitignore
12-
.next
13-
README.md
14-
LICENSE
15-
Dockerfile*
16-
docker-compose*
17-
.dockerignore
24+
.gitlab-ci.yml
25+
26+
# log
1827
*.log
1928
*.log*
29+
30+
# editor
2031
.vscode
21-
.DS_Store
22-
.gitignore
2332
.editorconfig
24-
.env
25-
.env.local
26-
.gitlab-ci.yml
27-
.eslintrc.js
2833
*.swp
34+
35+
# other
36+
README.md
37+
LICENSE
38+
.DS_Store

src/Web/client/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
FROM node:alpine AS build
22
WORKDIR /app
3+
# COPY below depends on .dockerignore to exclude node_modules, .next, etc.
34
COPY . .
45
RUN npm ci
56
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"]
138

149
EXPOSE 3000

src/Web/client/Dockerfile-dev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM node:alpine
22
WORKDIR /app
3-
COPY package*.json .
3+
# COPY below depends on .dockerignore to exclude node_modules, .next, etc.
4+
COPY . .
45
RUN npm ci
56
RUN npm run build
6-
COPY . .
77
ENTRYPOINT ["npm", "run", "dev"]
88

9-
EXPOSE 3000
9+
EXPOSE 3000

0 commit comments

Comments
 (0)