mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
19 lines
No EOL
248 B
Docker
19 lines
No EOL
248 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 /app
|
|
RUN rm -r /app/node_modules
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD node --experimental-fetch ./dist/ |