From 8815be8b435907d94b7e730567b4db8cf3c52528 Mon Sep 17 00:00:00 2001 From: imnyang Date: Fri, 12 Dec 2025 02:20:13 +0900 Subject: [PATCH] bun issue?? --- Dockerfile | 8 ++++---- compose.yml | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index eea4d5b..113152b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,13 +19,13 @@ COPY . . RUN bun run build # Production image, copy all the files and run next -FROM base AS runner +FROM node:24-alpine AS runner WORKDIR /app ENV NODE_ENV=production -RUN groupadd -g 1001 nodejs -RUN useradd -m -u 1001 -g nodejs -s /sbin/nologin nextjs +RUN addgroup --system --gid 1001 nodejs +RUN adduser --system --uid 1001 nextjs COPY --from=builder /app/public ./public @@ -38,4 +38,4 @@ EXPOSE 3000 ENV PORT=3000 ENV HOSTNAME="0.0.0.0" -CMD ["bun", "run", "server.js"] +CMD ["node", "server.js"] diff --git a/compose.yml b/compose.yml index 0d64adc..9e96437 100644 --- a/compose.yml +++ b/compose.yml @@ -3,4 +3,9 @@ services: image: ghcr.io/imnyang/imnya.ng:latest ports: - "3000:3000" - restart: always \ No newline at end of file + restart: always + deploy: + resources: + limits: + cpus: '1.0' + memory: 512M \ No newline at end of file