mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-02-06 14:42:40 +00:00
Dockerfile を更新
This commit is contained in:
@@ -10,8 +10,8 @@ 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 \
|
||||||
&& mkdir -p .complete \
|
&& mkdir -p /complete \
|
||||||
&& cp -r .next .complete
|
&& cp -r /src/.next /complete
|
||||||
|
|
||||||
FROM gcr.io/distroless/nodejs22-debian12
|
FROM gcr.io/distroless/nodejs22-debian12
|
||||||
|
|
||||||
@@ -19,8 +19,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/.complete/standalone ./
|
COPY --from=builder --chown=nonroot:nonroot /complete/standalone ./
|
||||||
COPY --from=builder --chown=nonroot:nonroot /src/.complete/static ./.next/static
|
COPY --from=builder --chown=nonroot:nonroot /complete/static ./.next/static
|
||||||
|
|
||||||
USER nonroot
|
USER nonroot
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user