Compare commits
4 Commits
fix/FIBERO
...
fix/docker
| Author | SHA1 | Date | |
|---|---|---|---|
| 87e9fac4c1 | |||
| c061e821c9 | |||
| 63cce69634 | |||
| ff73898dac |
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@@ -0,0 +1,9 @@
|
||||
.next
|
||||
node_modules
|
||||
.git
|
||||
.env.local
|
||||
.env.*.local
|
||||
npm-debug.log*
|
||||
*.log
|
||||
test-results
|
||||
playwright-report
|
||||
@@ -1,9 +1,9 @@
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Install ALL deps (including devDeps like tailwindcss, typescript)
|
||||
ENV NODE_ENV=development
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN npm run build
|
||||
@@ -12,11 +12,9 @@ FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/public ./public
|
||||
|
||||
EXPOSE 3000
|
||||
ENV PORT=3000
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
Reference in New Issue
Block a user