Ci : dockerfile ARG NUXT_PUBLIC_WELCOME_MESSAGE
release-tag / release-image (push) Successful in 32s
release-tag / release-image (push) Successful in 32s
This commit is contained in:
+3
-3
@@ -1,15 +1,15 @@
|
|||||||
FROM node:lts-alpine as build-stage
|
FROM node:lts-alpine AS build-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
ARG NUXT_PUBLIC_ENDPOINT
|
ARG NUXT_PUBLIC_ENDPOINT
|
||||||
ARG NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT
|
ARG NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT
|
||||||
ARG NUXT_WELCOME_MESSAGE
|
ARG NUXT_PUBLIC_WELCOME_MESSAGE
|
||||||
|
|
||||||
RUN npx nuxi generate
|
RUN npx nuxi generate
|
||||||
|
|
||||||
# étape de production
|
# étape de production
|
||||||
FROM nginx:stable-alpine as production-stage
|
FROM nginx:stable-alpine AS production-stage
|
||||||
COPY --from=build-stage /app/.output/public /usr/share/nginx/html
|
COPY --from=build-stage /app/.output/public /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
Reference in New Issue
Block a user