mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-30 13:17:37 +00:00
# Which Problems Are Solved Currently, the HTTP server is listening on IPv4 only. # How the Problems Are Solved This PR makes it listen on IPv4 and IPv6. Co-authored-by: Elio Bischof <elio@zitadel.com>
19 lines
721 B
Docker
19 lines
721 B
Docker
FROM node:22-alpine
|
|
WORKDIR /app
|
|
RUN addgroup --system --gid 1001 nodejs && \
|
|
adduser --system --uid 1001 nextjs
|
|
# 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 .next/standalone ./
|
|
|
|
USER nextjs
|
|
ENV HOSTNAME="::" \
|
|
PORT="3000" \
|
|
NODE_ENV="production"
|
|
|
|
# TODO: Check healthy, not ready
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD ["/bin/sh", "-c", "node /app/healthcheck.js http://localhost:${PORT}/ui/v2/login/healthy"]
|
|
ENTRYPOINT ["/app/entrypoint.sh", "node", "apps/login/server.js" ]
|