-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from 240708-NET/client-image
Fix copy errors in web client dockerfile
- Loading branch information
Showing
3 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
# javascript | ||
**/node_modules/ | ||
.next | ||
.eslintrc.js | ||
|
||
# docker | ||
Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
|
||
# build/test/deploy | ||
**/dist | ||
npm-debug.log | ||
build | ||
scripts | ||
.env | ||
.env.local | ||
.coverage | ||
.coverage.* | ||
.env | ||
.aws | ||
build | ||
scripts | ||
|
||
# git | ||
.git | ||
.gitignore | ||
.next | ||
README.md | ||
LICENSE | ||
Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
.gitlab-ci.yml | ||
|
||
# log | ||
*.log | ||
*.log* | ||
|
||
# editor | ||
.vscode | ||
.DS_Store | ||
.gitignore | ||
.editorconfig | ||
.env | ||
.env.local | ||
.gitlab-ci.yml | ||
.eslintrc.js | ||
*.swp | ||
|
||
# other | ||
README.md | ||
LICENSE | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
FROM node:alpine AS build | ||
WORKDIR /app | ||
# COPY below depends on .dockerignore to exclude node_modules, .next, etc. | ||
COPY . . | ||
RUN npm ci | ||
RUN npm run build | ||
|
||
FROM node:alpine AS run | ||
WORKDIR /app | ||
COPY --from=build /app/package*.json . | ||
COPY --from=build /app/.next . | ||
RUN npm ci | ||
ENTRYPOINT ["npm", "run", "start"] | ||
ENTRYPOINT ["npm", "run", "start"] | ||
|
||
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM node:alpine | ||
WORKDIR /app | ||
COPY package*.json . | ||
# COPY below depends on .dockerignore to exclude node_modules, .next, etc. | ||
COPY . . | ||
RUN npm ci | ||
RUN npm run build | ||
COPY . . | ||
ENTRYPOINT ["npm", "run", "dev"] | ||
|
||
EXPOSE 3000 | ||
EXPOSE 3000 |