peini7
peini7
ZZITADEL
Created by peini7 on 6/6/2025 in #questions-help-bugs
V2 Users API not working
Iam trying to use the V2 Users API as shown here: https://zitadel.com/docs/apis/resources/user_service_v2/user-service-create-user But i always get "Method not allowed" What am i doing wrong?
1 replies
ZZITADEL
Created by peini7 on 1/25/2025 in #questions-help-bugs
Dockerfile for running zitadel/typescript?
Does anyone have a working Dockerfile for building zitadel/typescript as a docker image? I don't want to deplyo it to Vercel. I've tried using this file, but it doesn't work:
FROM node:22-alpine AS base

# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
RUN corepack enable
WORKDIR /app

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
RUN pnpm i


# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN corepack enable
RUN pnpm run build

# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app

ENV NODE_ENV=production

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/apps/login/public ./public

COPY --from=builder --chown=nextjs:nodejs /app/apps/login/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/apps/login/.next/static ./.next/static

USER nextjs

EXPOSE 3000

ENV PORT=3000

ENV HOSTNAME="0.0.0.0"
CMD ["node", "apps/login/server.js"]
FROM node:22-alpine AS base

# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
RUN corepack enable
WORKDIR /app

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
RUN pnpm i


# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN corepack enable
RUN pnpm run build

# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app

ENV NODE_ENV=production

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/apps/login/public ./public

COPY --from=builder --chown=nextjs:nodejs /app/apps/login/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/apps/login/.next/static ./.next/static

USER nextjs

EXPOSE 3000

ENV PORT=3000

ENV HOSTNAME="0.0.0.0"
CMD ["node", "apps/login/server.js"]
2 replies