Skip to content

Commit

Permalink
remove proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
garethcmurphy committed Jul 18, 2018
1 parent 88ec05c commit 45601bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ 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

Expand Down
38 changes: 38 additions & 0 deletions Dockerfile.proxy
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"]

0 comments on commit 45601bd

Please sign in to comment.