This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
old-shiloh-website/Dockerfile

30 lines
788 B
Docker
Raw Normal View History

# Build stage
FROM node:16-alpine AS build-stage
2023-05-16 15:08:37 -07:00
WORKDIR /app
2023-05-19 12:54:45 -07:00
COPY /home/ubuntu/git/shiloh1/package.json ./
COPY /home/ubuntu/git/shiloh1/package-lock.json ./
RUN npm ci --production
2023-05-16 15:08:37 -07:00
2023-05-19 12:54:45 -07:00
COPY /home/ubuntu/git/shiloh1/next.config.js ./
COPY /home/ubuntu/git/shiloh1/tailwind.config.js ./
COPY /home/ubuntu/git/shiloh1/postcss.config.js ./
COPY /home/ubuntu/git/shiloh1/components ./components
COPY /home/ubuntu/git/shiloh1/pages ./pages
COPY /home/ubuntu/git/shiloh1/public ./public
COPY /home/ubuntu/git/shiloh1/styles ./styles
2023-05-16 15:08:37 -07:00
RUN npm run build
# Production stage
FROM node:16-alpine AS production-stage
WORKDIR /app
COPY --from=build-stage /app/.next ./.next
COPY --from=build-stage /app/public ./public
COPY --from=build-stage /app/node_modules ./node_modules
2023-05-19 12:54:45 -07:00
CMD ["npm", "start"]