Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ll911 authored Jul 3, 2018
1 parent 100d6c2 commit d343ba7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ MAINTAINER [email protected]

RUN apk update \
&& apk add --no-cache --virtual .dev nodejs python make g++ git \
&& git config --global url.https://github.com/.insteadOf git://github.com/ \
&& git config --global url.https://github.com/.insteadOf git://github.com/

RUN adduser --disabled-password --gecos "" app \
&& mkdir /npm-global && chown -R app:app /npm-global \
&& chown -R app:app /app && chmod -R 770 /app
&& chown -R app:app /app && chmod -R 770 /app \
&& mkdir -p /var/www
# configures environment
ENV NPM_CONFIG_PREFIX=/npm-global \
Expand All @@ -20,9 +20,11 @@ WORKDIR /app
COPY . /app

RUN echo "prefix=/npm-global" > ~/.npmrc \
&& npm i -g @angular/cli
RUN npm install
&& npm i -g @angular/cli \
&& npm install

USER root
WORKDIR /app
RUN ng build --configuration=${configuration} --prod

# Install Caddy Server, and All Middleware
Expand Down

0 comments on commit d343ba7

Please sign in to comment.