You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
502 B

FROM node:18-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/.output ./.output
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/public ./public
COPY --from=builder /app/.nuxt ./.nuxt
ENV NODE_ENV=production
ENV BASE_PATH=/
ENV CDN_URL=https://codefirst.iut.uca.fr
ENV HOST=0.0.0.0
ENV PORT=3000
RUN npm install --production
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]