Docker tweaks

This commit is contained in:
Matthias Kretschmann 2019-10-15 11:39:34 +02:00
parent 78d4c8b874
commit 9226bf2799
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 15 additions and 12 deletions

View File

@ -8,13 +8,16 @@ RUN apk add --no-cache --update\
git \
gettext \
make \
python
python \
&& rm -rf /var/cache/apk/*
COPY package*.json /app/frontend/
WORKDIR /app/frontend
RUN npm install -g npm serve \
&& npm install \
&& npm cache clean --force
COPY . /app/frontend
WORKDIR /app/frontend
RUN npm install -g npm serve
RUN npm install
RUN npm run build
# Default ENV values