From b6dd383003d89888474bb2339c3eb90f5c90be73 Mon Sep 17 00:00:00 2001 From: "jean-philippe.bazonnais" Date: Fri, 27 Sep 2024 22:53:01 +0200 Subject: [PATCH] Docker image en mode production --- .docker/Dockerfile | 2 +- .github/workflows/docker-build-publish.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 225043a..a9affc5 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -19,7 +19,7 @@ FROM node:20-alpine as builder ARG BASE_URL="/cartes" -ARG MODE_ENV="development" +ARG MODE_ENV="production" RUN apk add git diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml index 2782ab3..8c12bd0 100644 --- a/.github/workflows/docker-build-publish.yml +++ b/.github/workflows/docker-build-publish.yml @@ -59,6 +59,7 @@ jobs: with: context: . file: .docker/Dockerfile + build-args: MODE_ENV=production pull: true push: true tags: ${{ steps.meta.outputs.tags }}