2022-02-27 09:34:15 -07:00
|
|
|
FROM node:14-alpine as builder
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN yarn --pure-lockfile
|
|
|
|
RUN yarn run build:static
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2021-10-16 00:33:50 -06:00
|
|
|
FROM node:14-alpine
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2020-12-11 03:11:03 -07:00
|
|
|
WORKDIR /app
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2021-10-16 00:33:50 -06:00
|
|
|
COPY . .
|
2022-02-27 09:34:15 -07:00
|
|
|
COPY --from=builder /app/static /app/static
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2020-12-11 03:11:03 -07:00
|
|
|
RUN yarn --production --pure-lockfile
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2020-08-09 03:43:25 -06:00
|
|
|
EXPOSE 3000
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2021-10-16 00:33:50 -06:00
|
|
|
CMD yarn start
|