mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
ui container fixes
This commit is contained in:
parent
3ee0c64e7c
commit
b62166abda
5 changed files with 27 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue