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.

23 lines
573 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
RUN npm install --production
ENV NODE_ENV=production
ENV BASE_PATH=/containers/matheothierry-portfolio_nuxt/
ENV CDN_URL=https://codefirst.iut.uca.fr/matheothierry-portfolio_nuxt/
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]