2024-09-09 23:02:59 -04:00
|
|
|
VERSION 0.8
|
|
|
|
|
2024-09-23 07:55:58 -07:00
|
|
|
FROM alpine:edge
|
2024-09-09 23:02:59 -04:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
ENV NODE_ENV="production"
|
|
|
|
|
|
|
|
|
|
|
|
build:
|
2024-09-23 07:55:58 -07:00
|
|
|
RUN apk -U add build-base gyp pkgconfig python3 nodejs npm
|
2024-09-09 23:02:59 -04:00
|
|
|
|
|
|
|
COPY package-lock.json package.json ./
|
|
|
|
RUN npm ci --include=dev
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
RUN npm prune --omit=dev
|
|
|
|
|
|
|
|
SAVE ARTIFACT /app
|
|
|
|
|
|
|
|
run:
|
2024-09-23 07:55:58 -07:00
|
|
|
RUN apk -U add nodejs
|
|
|
|
|
2024-09-17 19:45:30 -04:00
|
|
|
COPY +build/app/.next/standalone /app
|
|
|
|
COPY +build/app/.next/static /app/.next/static
|
|
|
|
COPY +build/app/public /app/public
|
2024-09-09 23:02:59 -04:00
|
|
|
|
|
|
|
EXPOSE 3000
|
2024-09-17 19:45:30 -04:00
|
|
|
CMD [ "node", "server.js" ]
|
2024-09-09 23:02:59 -04:00
|
|
|
|
2025-01-12 12:53:31 -05:00
|
|
|
SAVE IMAGE --push registry.int.xeserv.us/techaro/www
|