File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- FROM node:16 -alpine AS deps
1+ FROM node:20 -alpine AS deps
22RUN apk add --no-cache libc6-compat git
33WORKDIR /app
44COPY frontend/package.json frontend/yarn.lock ./frontend/
55RUN cd frontend && yarn install --frozen-lockfile
66
7- FROM node:16 -alpine AS builder
7+ FROM node:20 -alpine AS builder
88RUN apk add --no-cache git
99WORKDIR /app
1010# Copy everything
1111COPY . .
1212COPY --from=deps /app/frontend/node_modules ./frontend/node_modules
1313RUN cd frontend && yarn build && yarn install --production --ignore-scripts --prefer-offline
1414
15- # Production image, copy all the files and run next
16- FROM node:16 -alpine AS runner
15+ # Production image, copy all the files and run docusaurus
16+ FROM node:20 -alpine AS runner
1717WORKDIR /app
1818
1919ENV NODE_ENV production
2020
2121RUN addgroup -g 1001 -S nodejs
22- RUN adduser -S nextjs -u 1001
22+ RUN adduser -S ompweb -u 1001
2323
24- COPY --from=builder --chown=nextjs :nodejs /app/ .
24+ COPY --from=builder --chown=ompweb :nodejs /app/ .
2525WORKDIR /app/frontend
2626
27- USER nextjs
27+ USER ompweb
2828
2929EXPOSE 3000
3030
31- CMD ["yarn", "start "]
31+ CMD ["yarn", "serve "]
You can’t perform that action at this time.
0 commit comments