forked from italia/publiccode-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build the Docker image and update the doc
Also, copy patches/ into the build stage image, so patch-package can apply the patch properly. Fix italia#311.
- Loading branch information
Showing
3 changed files
with
10 additions
and
9 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,3 +1,3 @@ | ||
.git | ||
node_modules | ||
build | ||
dist |
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,13 +1,14 @@ | ||
# Stage 0, "build-stage". | ||
FROM node:lts as build-stage | ||
FROM docker.io/node:18 as build-stage | ||
|
||
WORKDIR /app | ||
COPY package*.json /app/ | ||
|
||
# First install deps, then copy app and build. | ||
RUN apt-get update \ | ||
&& apt-get -y --no-install-recommends install golang-go=2:1.19~1 golang-src=2:1.19~1 | ||
|
||
COPY . /app | ||
|
||
RUN npm ci | ||
COPY ./ /app/ | ||
RUN npm run build | ||
|
||
# Stage 1, "prod-stage". | ||
FROM nginx:1 | ||
FROM docker.io/nginx:1 | ||
COPY --from=build-stage /app/dist/ /usr/share/nginx/html |
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