2022-02-24 07:53:10 +00:00
|
|
|
FROM node:12-alpine AS web_build
|
2018-12-09 13:21:20 +00:00
|
|
|
|
|
|
|
WORKDIR /agola-web
|
|
|
|
|
|
|
|
# copy both 'package.json' and 'package-lock.json' (if available)
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
# install project dependencies
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
# Copy all the source
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# Build app
|
|
|
|
RUN npm run build
|