Skip to content

Commit

Permalink
feat(c1): dockerfile for ambulance waiting list web component
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSkriba committed Feb 13, 2024
1 parent b02b2f9 commit 53d7b9a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
www
loader
node_modules
26 changes: 26 additions & 0 deletions build/docker/Dockerfile
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

0 comments on commit 53d7b9a

Please sign in to comment.