mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 10:47:37 +00:00
fix login build
This commit is contained in:
@@ -6,6 +6,9 @@ services:
|
||||
|
||||
login-integration:
|
||||
container_name: login-integration
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: build/login/Dockerfile
|
||||
image: "${LOGIN_TAG:-zitadel-login:local}"
|
||||
env_file: ../../apps/login/.env.test
|
||||
network_mode: service:mock-zitadel
|
||||
|
@@ -30,9 +30,9 @@ COPY proto ./proto
|
||||
RUN pnpm turbo build:login:standalone
|
||||
|
||||
FROM scratch AS build-out
|
||||
COPY --from=builder /build/apps/login/.next/standalone /
|
||||
COPY --from=builder /build/apps/login/.next/static /apps/login/.next/static
|
||||
COPY --from=builder /build/apps/login/public /apps/login/public
|
||||
COPY --from=builder /build/apps/login/.next/standalone ./
|
||||
COPY --from=builder /build/apps/login/.next/static ./.next/static
|
||||
COPY --from=builder /build/apps/login/public ./public
|
||||
|
||||
FROM runtime AS login-standalone
|
||||
WORKDIR /runtime
|
||||
@@ -41,7 +41,7 @@ RUN addgroup --system --gid 1001 nodejs && \
|
||||
# If /.env-file/.env is mounted into the container, its variables are made available to the server before it starts up.
|
||||
RUN mkdir -p /.env-file && touch /.env-file/.env && chown -R nextjs:nodejs /.env-file
|
||||
COPY --chown=nextjs:nodejs apps/login/scripts ./
|
||||
COPY --chown=nextjs:nodejs --from=build-out / ./
|
||||
COPY --chown=nextjs:nodejs --from=build-out . .
|
||||
# Debug the final structure
|
||||
USER nextjs
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
Reference in New Issue
Block a user