|
- FROM node:12-alpine AS builder
- LABEL maintainer="LessPass <contact@lesspass.com>"
- LABEL name="LessPass Frontend"
- WORKDIR /opt/frontend
- COPY package.json yarn.lock ./
- RUN yarn install
- RUN yarn global add gulp-cli
- COPY . /opt/frontend
- RUN yarn build
- FROM nginx:alpine
- COPY --from=builder /opt/frontend/build /usr/share/nginx/html
- COPY nginx.conf /etc/nginx/conf.d/default.conf
- EXPOSE 80
- CMD ["nginx", "-g", "daemon off;"]
|