-
Notifications
You must be signed in to change notification settings - Fork 251
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
1 parent
e721461
commit f193bbc
Showing
5 changed files
with
16,318 additions
and
45 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,18 +1,9 @@ | ||
FROM node:16-alpine as build-stage | ||
WORKDIR /app | ||
COPY . ./ | ||
ENV NODE_OPTIONS=--max-old-space-size=16384 | ||
RUN npm install pnpm -g | ||
RUN pnpm i | ||
RUN pnpm build | ||
|
||
|
||
FROM nginx:1.17.3-alpine as production-stage | ||
COPY --from=build-stage app/_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build-stage app/_nginx/env.js /etc/nginx/env.js | ||
COPY --from=build-stage app/_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=build-stage app/dist/ /usr/share/nginx/html | ||
FROM nginx:1.17.3-alpine as base | ||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] | ||
COPY /_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY /_nginx/env.js /etc/nginx/env.js | ||
COPY /_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY /dist/ /usr/share/nginx/html | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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,18 +1,9 @@ | ||
FROM node:16-alpine as build-stage | ||
WORKDIR /app | ||
COPY . ./ | ||
ENV NODE_OPTIONS=--max-old-space-size=16384 | ||
RUN npm install pnpm -g | ||
RUN pnpm i | ||
RUN pnpm build | ||
|
||
|
||
FROM nginx:1.17.3-alpine as production-stage | ||
COPY --from=build-stage app/_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build-stage app/_nginx/env.js /etc/nginx/env.js | ||
COPY --from=build-stage app/_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=build-stage app/dist/ /usr/share/nginx/html | ||
FROM nginx:1.17.3-alpine as base | ||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] | ||
COPY /_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY /_nginx/env.js /etc/nginx/env.js | ||
COPY /_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY /dist/ /usr/share/nginx/html | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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,18 +1,9 @@ | ||
FROM node:16-alpine as build-stage | ||
WORKDIR /app | ||
COPY . ./ | ||
ENV NODE_OPTIONS=--max-old-space-size=16384 | ||
RUN npm install pnpm -g | ||
RUN pnpm i | ||
RUN pnpm build | ||
|
||
|
||
FROM nginx:1.17.3-alpine as production-stage | ||
COPY --from=build-stage app/_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build-stage app/_nginx/env.js /etc/nginx/env.js | ||
COPY --from=build-stage app/_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=build-stage app/dist/ /usr/share/nginx/html | ||
FROM nginx:1.17.3-alpine as base | ||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] | ||
COPY /_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY /_nginx/env.js /etc/nginx/env.js | ||
COPY /_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY /dist/ /usr/share/nginx/html | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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,18 @@ | ||
FROM node:16-alpine as build-stage | ||
WORKDIR /app | ||
COPY . ./ | ||
ENV NODE_OPTIONS=--max-old-space-size=16384 | ||
RUN npm install pnpm -g | ||
RUN pnpm i | ||
RUN pnpm build | ||
|
||
|
||
FROM nginx:1.17.3-alpine as production-stage | ||
COPY --from=build-stage app/_nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build-stage app/_nginx/env.js /etc/nginx/env.js | ||
COPY --from=build-stage app/_nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=build-stage app/dist/ /usr/share/nginx/html | ||
EXPOSE 80 | ||
|
||
CMD ["nginx", "-g", "daemon off;"] | ||
|
Oops, something went wrong.