-
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.
- Loading branch information
Showing
7 changed files
with
72 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
FROM node:16.17 as build-stage | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm install -g n | ||
RUN n 16.17.1 | ||
RUN npm install | ||
COPY ./ . | ||
RUN rm -rf nginx | ||
|
||
COPY ./src/environments/environment.development.ts ./src/environments/environment.ts | ||
|
||
RUN npm run build -- --base-href=/caddie_dev/ --output-path=./dist/caddie-frontend | ||
|
||
FROM nginx:mainline-alpine | ||
|
||
RUN apk update && apk add --upgrade apk-tools && apk upgrade --available | ||
|
||
COPY --from=build-stage /app/dist/caddie-frontend/ /usr/share/nginx/html/caddie/ | ||
|
||
COPY nginx/default.conf /etc/nginx/conf.d/ | ||
|
||
EXPOSE 80 |
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,24 @@ | ||
FROM node:16.17 as build-stage | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm install -g n | ||
RUN n 16.17.1 | ||
RUN npm install | ||
COPY ./ . | ||
RUN rm -rf nginx | ||
|
||
COPY ./src/environments/environment.local.ts ./src/environments/environment.ts | ||
|
||
RUN npm run build -- --base-href=/caddie/ --output-path=./dist/caddie-frontend | ||
|
||
FROM nginx:mainline-alpine | ||
|
||
RUN apk update && apk add --upgrade apk-tools && apk upgrade --available | ||
|
||
COPY --from=build-stage /app/dist/caddie-frontend/ /usr/share/nginx/html/caddie/ | ||
|
||
COPY nginx/default.conf /etc/nginx/conf.d/ | ||
|
||
EXPOSE 80 |
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,24 @@ | ||
FROM node:16.17 as build-stage | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm install -g n | ||
RUN n 16.17.1 | ||
RUN npm install | ||
COPY ./ . | ||
RUN rm -rf nginx | ||
|
||
COPY ./src/environments/environment.production.ts ./src/environments/environment.ts | ||
|
||
RUN npm run build -- --base-href=/caddie/ --output-path=./dist/caddie-frontend | ||
|
||
FROM nginx:mainline-alpine | ||
|
||
RUN apk update && apk add --upgrade apk-tools && apk upgrade --available | ||
|
||
COPY --from=build-stage /app/dist/caddie-frontend/ /usr/share/nginx/html/caddie/ | ||
|
||
COPY nginx/default.conf /etc/nginx/conf.d/ | ||
|
||
EXPOSE 80 |