This commit is contained in:
2024-05-08 23:54:37 +02:00
parent b57b2db2ad
commit 7241d4b3f4
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -3,7 +3,11 @@ WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
RUN --mount=type=secret,id=NUXT_PUBLIC_WEBSOCKET_ENDPOINT \
--mount=type=secret,id=NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT \
NUXT_PUBLIC_WEBSOCKET_ENDPOINT =$(cat /run/secrets/NUXT_PUBLIC_WEBSOCKET_ENDPOINT ) \
NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT =$(cat /run/secrets/NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT ) \
npx nuxi generate
# étape de production
FROM nginx:stable-alpine as production-stage