Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better container to build frontend code; Updated vulnerable deps #15

Merged
merged 2 commits into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ RUN \


FROM node:10.19.0-alpine3.11 as build-frontend
WORKDIR /srv/frontend/

ADD frontend /srv/frontend
RUN apk add --no-cache --update git python make g++
RUN \
cd /srv/frontend && \
npm i gulp && \
npm i --production && npm run build
COPY ./frontend/package.json ./frontend/package-lock.json ./
RUN npm install

COPY ./frontend /srv/frontend
RUN npm run build
RUN npm prune --production

FROM umputun/baseimage:app-latest

Expand Down
Loading