-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from yipeeio/update-ui-dockerfile
Update ui dockerfile
- Loading branch information
Showing
5 changed files
with
13 additions
and
17 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
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
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,19 +1,8 @@ | ||
FROM nginx:1.15.5-alpine as builder | ||
ARG HTML_DEST=/usr/html | ||
ARG DEFAULT_CFG=default.conf | ||
FROM node:8.14.0-alpine as builder | ||
WORKDIR /app | ||
COPY . /app | ||
RUN rm -rf /usr/html/index.html && \ | ||
apk add --update --no-cache chromium \ | ||
git \ | ||
g++ \ | ||
make \ | ||
openssh-client \ | ||
python \ | ||
npm && \ | ||
npm install npm@latest -g && \ | ||
RUN apk add --update --no-cache chromium && \ | ||
npm install && \ | ||
npm install @angular/[email protected] --save-dev -g && \ | ||
export CHROME_BIN=/usr/bin/chromium-browser && \ | ||
npm run test-prod | ||
|
||
|
@@ -26,6 +15,4 @@ RUN rm -rf /usr/html/index.html | |
COPY ./${DEFAULT_CFG} /etc/nginx/conf.d/ | ||
COPY ./run /etc/sysctl.d/ | ||
COPY --from=builder /app/dist ${HTML_DEST} | ||
# mkdir -p -m 777 ${HTML_DEST} | ||
# COPY --from=builder /app/dist ${HTML_DEST} | ||
EXPOSE 80 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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