bun issue??
This commit is contained in:
parent
288d3c4e3d
commit
8815be8b43
2 changed files with 10 additions and 5 deletions
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue