-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
11 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,4 @@ | ||
.git | ||
.github | ||
.maintain | ||
!.maintain/docker/nginx/ |
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,15 +1,18 @@ | ||
# build stage | ||
FROM node:16.11.1 as build-stage | ||
FROM node:16.11.1 as builder | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm ci | ||
COPY . . | ||
RUN npm run build | ||
|
||
# production stage | ||
FROM nginx:stable-alpine as production-stage | ||
FROM nginx:stable-alpine as runner | ||
LABEL network.debio.image.authors="[email protected]" | ||
WORKDIR /usr/share/nginx/html | ||
COPY ./.maintain/docker/nginx/nginx.conf /etc/nginx/nginx.conf | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY nginx/conf.d/default.conf /etc/nginx/conf.d/ | ||
COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
COPY ./.maintain/docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
File renamed without changes.
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