mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 00:59:09 +00:00
start redoing ci/cd and devops
This commit is contained in:
parent
460770407a
commit
ab9fe30b42
37 changed files with 418 additions and 825 deletions
25
hack/dockerfiles/ui.Dockerfile
Normal file
25
hack/dockerfiles/ui.Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM node:14-alpine AS base
|
||||
WORKDIR /src
|
||||
|
||||
#
|
||||
# Builder
|
||||
#
|
||||
FROM base AS builder
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN yarn ui:build
|
||||
|
||||
RUN yarn install --frozen-lockfile --prod
|
||||
|
||||
#
|
||||
# Output layer
|
||||
#
|
||||
FROM base AS output
|
||||
|
||||
COPY --from=builder /src/.next /src/node_modules ./
|
||||
|
||||
EXPOSE 3000
|
||||
CMD yarn ui:prod
|
Loading…
Add table
Add a link
Reference in a new issue