bun issue??

This commit is contained in:
암냥 2025-12-12 02:20:13 +09:00
commit 8815be8b43
No known key found for this signature in database
2 changed files with 10 additions and 5 deletions

View file

@ -19,13 +19,13 @@ COPY . .
RUN bun run build RUN bun run build
# Production image, copy all the files and run next # Production image, copy all the files and run next
FROM base AS runner FROM node:24-alpine AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
RUN groupadd -g 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN useradd -m -u 1001 -g nodejs -s /sbin/nologin nextjs RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
@ -38,4 +38,4 @@ EXPOSE 3000
ENV PORT=3000 ENV PORT=3000
ENV HOSTNAME="0.0.0.0" ENV HOSTNAME="0.0.0.0"
CMD ["bun", "run", "server.js"] CMD ["node", "server.js"]

View file

@ -3,4 +3,9 @@ services:
image: ghcr.io/imnyang/imnya.ng:latest image: ghcr.io/imnyang/imnya.ng:latest
ports: ports:
- "3000:3000" - "3000:3000"
restart: always restart: always
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M