mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-02-06 14:42:40 +00:00
finn
This commit is contained in:
@@ -10,6 +10,7 @@ RUN pnpm install --frozen-lockfile
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/src/.next pnpm build
|
RUN --mount=type=cache,target=/src/.next pnpm build
|
||||||
|
COPY /src/.next /src/.complete
|
||||||
|
|
||||||
FROM gcr.io/distroless/nodejs22-debian12
|
FROM gcr.io/distroless/nodejs22-debian12
|
||||||
|
|
||||||
@@ -17,8 +18,8 @@ ENV NODE_ENV=production
|
|||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
|
||||||
COPY --chown=nonroot:nonroot ./public ./public
|
COPY --chown=nonroot:nonroot ./public ./public
|
||||||
COPY --from=builder --chown=nonroot:nonroot /src/.next/standalone ./
|
COPY --from=builder --chown=nonroot:nonroot /src/.complete/standalone ./
|
||||||
COPY --from=builder --chown=nonroot:nonroot /src/.next/static ./.next/static
|
COPY --from=builder --chown=nonroot:nonroot /src/.complete/static ./.next/static
|
||||||
|
|
||||||
USER nonroot
|
USER nonroot
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user