Dockerfile 382 B

1234567891011121314151617
  1. # First, build Threema Web in a node container
  2. FROM node:10 AS builder
  3. COPY . /opt/threema-web/
  4. WORKDIR /opt/threema-web/
  5. ENV NODE_ENV=production
  6. RUN npm ci
  7. RUN npm run dist
  8. # Then, transfer the build artifacts to a minimal nginx container
  9. FROM nginx:1.15-alpine
  10. RUN rm /usr/share/nginx/html/*
  11. COPY --from=builder /opt/threema-web/release/threema-web-* /usr/share/nginx/html/