forked from Mirrors/keyoxide-web
22 lines
No EOL
368 B
Docker
22 lines
No EOL
368 B
Docker
FROM node:16-alpine as builder
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN yarn --pure-lockfile
|
|
RUN yarn run build
|
|
|
|
###
|
|
|
|
FROM node:16-alpine
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/package.json .
|
|
COPY --from=builder /app/dist/ .
|
|
COPY --from=builder /app/content/ .
|
|
COPY --from=builder /app/views/ .
|
|
COPY --from=builder /app/static/ .
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD node --experimental-fetch ./dist/ |