You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213
  1. FROM node:lts AS builder
  2. LABEL maintainer="LessPass <contact@lesspass.com>"
  3. LABEL name="LessPass Blog"
  4. WORKDIR /opt/blog
  5. COPY package.json yarn.lock ./
  6. RUN yarn install
  7. COPY . /opt/blog
  8. RUN yarn build
  9. FROM nginx:alpine
  10. COPY --from=builder /opt/blog/build /usr/share/nginx/html
  11. COPY nginx.conf /etc/nginx/conf.d/default.conf
  12. EXPOSE 80
  13. CMD ["nginx", "-g", "daemon off;"]