mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
26 lines
No EOL
531 B
Docker
26 lines
No EOL
531 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 /app/package.json
|
|
COPY --from=builder /app/dist /app/dist
|
|
COPY --from=builder /app/content /app/content
|
|
COPY --from=builder /app/views /app/views
|
|
COPY --from=builder /app/static /app/static
|
|
|
|
# Temporary fix until we make jsdom dependency play nice with ncc
|
|
# https://github.com/jsdom/jsdom/issues/2508
|
|
RUN npm install jsdom
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD node ./dist/ |