Files
front/Dockerfile
T
legonzaur efebc79d35
release-tag / release-image (push) Successful in 32s
Ci : dockerfile ARG NUXT_PUBLIC_WELCOME_MESSAGE
2024-08-01 12:19:43 +02:00

15 lines
398 B
Docker

FROM node:lts-alpine AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ARG NUXT_PUBLIC_ENDPOINT
ARG NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT
ARG NUXT_PUBLIC_WELCOME_MESSAGE
RUN npx nuxi generate
# étape de production
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/.output/public /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf