-
Notifications
You must be signed in to change notification settings - Fork 3
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
88ec05c
commit 45601bd
Showing
2 changed files
with
38 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM mhart/alpine-node:8 | ||
|
||
RUN mkdir /usr/html | ||
RUN mkdir /landing | ||
WORKDIR /landing | ||
|
||
|
||
|
||
COPY package.json . | ||
|
||
ENV http_proxy "http://192.168.1.1:8123" | ||
ENV https_proxy $http_proxy | ||
ENV no_proxy "localhost, 127.0.0.1" | ||
RUN npm config set proxy $http_proxy | ||
RUN npm config set https-proxy $http_proxy | ||
RUN npm config set registry http://registry.npmjs.org/ | ||
RUN npm config set strict-ssl false | ||
|
||
RUN npm install | ||
|
||
COPY src src | ||
COPY angular.json . | ||
COPY tsconfig.json . | ||
COPY webpack.server.config.js . | ||
COPY server.ts . | ||
|
||
ARG APP_PROD='true' | ||
ARG LB_BASE_URL='http://localhost/api' | ||
ARG LB_API_VERSION='' | ||
|
||
RUN npm install http-server -g | ||
|
||
|
||
RUN npm run build:ssr | ||
|
||
WORKDIR /landing/dist/browser | ||
EXPOSE 8080 | ||
CMD ["http-server"] |