mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Fix dockerfile
This commit is contained in:
parent
017779c7b4
commit
626faf2778
1 changed files with 13 additions and 2 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,12 +1,23 @@
|
||||||
FROM node:14-alpine
|
FROM node:14-alpine as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN yarn --production --pure-lockfile
|
RUN yarn --pure-lockfile
|
||||||
RUN yarn run build:static
|
RUN yarn run build:static
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
FROM node:14-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
COPY --from=builder /app/static /app/static
|
||||||
|
|
||||||
|
RUN yarn --production --pure-lockfile
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD yarn start
|
CMD yarn start
|
Loading…
Reference in a new issue