Loading .dockerignore 0 → 100644 +7 −0 Original line number Diff line number Diff line node_modules .next Dockerfile docker-compose.yml *.log .env* No newline at end of file docker/Dockerfile 0 → 100644 +27 −0 Original line number Diff line number Diff line # Install dependencies and build FROM node:20-alpine AS builder WORKDIR /app # Install dependencies COPY package*.json ./ RUN npm install # Copy source and build COPY . . RUN npm run build # Production image FROM node:20-alpine AS runner WORKDIR /app # Copy only necessary files COPY --from=builder /app/public ./public COPY --from=builder /app/.next ./.next COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./package.json # If using custom server (e.g. Express), copy it too # COPY --from=builder /app/server.js ./server.js EXPOSE 3000 CMD ["npm", "start"] No newline at end of file docker/deploy-dev.cmd 0 → 100644 +13 −0 Original line number Diff line number Diff line docker build -t anthonygj/resume-back --progress=plain . -f docker/Dockerfile docker container rm -f resume-back docker run -dit ^ -p 3000:3000 ^ -v C:\Users\antho\dev_workspace\certs\:/etc/certs/ ^ -v C:\Users\antho\dev_workspace\resume-website-2025\back-nextjs\.env.dev:/app/.env.production ^ --network=infra ^ -h backdev.anthony-jacob.com ^ --restart=always ^ --name resume-back ^ anthonygj/resume-back Loading
.dockerignore 0 → 100644 +7 −0 Original line number Diff line number Diff line node_modules .next Dockerfile docker-compose.yml *.log .env* No newline at end of file
docker/Dockerfile 0 → 100644 +27 −0 Original line number Diff line number Diff line # Install dependencies and build FROM node:20-alpine AS builder WORKDIR /app # Install dependencies COPY package*.json ./ RUN npm install # Copy source and build COPY . . RUN npm run build # Production image FROM node:20-alpine AS runner WORKDIR /app # Copy only necessary files COPY --from=builder /app/public ./public COPY --from=builder /app/.next ./.next COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./package.json # If using custom server (e.g. Express), copy it too # COPY --from=builder /app/server.js ./server.js EXPOSE 3000 CMD ["npm", "start"] No newline at end of file
docker/deploy-dev.cmd 0 → 100644 +13 −0 Original line number Diff line number Diff line docker build -t anthonygj/resume-back --progress=plain . -f docker/Dockerfile docker container rm -f resume-back docker run -dit ^ -p 3000:3000 ^ -v C:\Users\antho\dev_workspace\certs\:/etc/certs/ ^ -v C:\Users\antho\dev_workspace\resume-website-2025\back-nextjs\.env.dev:/app/.env.production ^ --network=infra ^ -h backdev.anthony-jacob.com ^ --restart=always ^ --name resume-back ^ anthonygj/resume-back