ui container fixes

This commit is contained in:
41666 2020-12-06 06:26:43 -05:00
parent 3ee0c64e7c
commit b62166abda
5 changed files with 27 additions and 67 deletions

View file

@ -1,5 +1,6 @@
FROM node:14-alpine AS base
WORKDIR /src
ENTRYPOINT []
#
# Builder
@ -9,17 +10,17 @@ FROM base AS builder
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn ui:build
COPY tsconfig.json .babelrc.js next.config.js next-env.d.ts ./
COPY src src
RUN yarn install --frozen-lockfile --prod
RUN yarn ui:build
#
# Output layer
#
FROM base AS output
COPY --from=builder /src/.next /src/node_modules ./
COPY --from=builder /src .
EXPOSE 3000
CMD yarn ui:prod