mirror of
https://github.com/arthur-pbty/chrono.git
synced 2026-06-03 15:07:21 +02:00
ab4b8b2924
- Updated Next.js to version 16.2.4 - Updated Tailwind CSS and PostCSS to their latest versions - Added autoprefixer to PostCSS configuration - Created a .dockerignore file to exclude unnecessary files from Docker context
23 lines
415 B
Docker
23 lines
415 B
Docker
# ---------- BASE ----------
|
|
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# ---------- INSTALL DEPS ----------
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm ci
|
|
|
|
# ---------- COPY SOURCE ----------
|
|
COPY . .
|
|
|
|
# ---------- BUILD (OBLIGATOIRE POUR next start) ----------
|
|
RUN npm run build
|
|
|
|
# ---------- ENV ----------
|
|
ENV NODE_ENV=production
|
|
ENV PORT=3000
|
|
|
|
EXPOSE 3000
|
|
|
|
# ---------- START ----------
|
|
CMD ["npm", "run", "start"] |