This commit is contained in:
Monarch055
2026-06-10 22:42:58 +07:00
parent 7ad037bf0a
commit 2a0bb3d637
7 changed files with 182 additions and 8 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node:20-alpine
# Install libc6-compat for compatibility with native node modules
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Expose Next.js port
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
# Automatically install dependencies (to handle architecture differences between Windows host and Linux container)
# and run Next.js in development mode
CMD ["sh", "-c", "npm install && npm run dev"]