-
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.
feat(c1): dockerfile for ambulance waiting list web component
- Loading branch information
1 parent
b02b2f9
commit 53d7b9a
Showing
2 changed files
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
www | ||
loader | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### compilation stage | ||
FROM node:latest AS build | ||
|
||
RUN mkdir /build | ||
WORKDIR /build | ||
|
||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | ||
COPY package.json . | ||
RUN yarn | ||
|
||
COPY . . | ||
RUN yarn build | ||
|
||
### prepare go embedding of SPA server | ||
FROM milung/spa-server as spa-build | ||
|
||
COPY --from=build /build/www public | ||
RUN ./build.sh | ||
|
||
### scratch image - no additional dependencies only server process | ||
FROM scratch | ||
ENV CSP_HEADER=false | ||
|
||
COPY --from=spa-build /app/server /server | ||
CMD ["/server"] | ||
EXPOSE 8080 |