I think we need this to actually be running with NPM.

pull/5/head
Evans Tucker 7 years ago
parent 941c4aebdb
commit 4b5039f369
  1. 7
      Dockerfile

@ -1,11 +1,8 @@
FROM node:8.11-alpine as builder FROM node:8.11-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install
COPY . . COPY . .
RUN npm install -g grunt-cli RUN npm install -g grunt-cli
RUN grunt RUN grunt
RUN npm start
# This is the final container that serves the static content.
FROM nginx:alpine
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html

Loading…
Cancel
Save