Add .env file creation in frontend Dockerfile

This commit is contained in:
2025-06-01 12:21:29 +02:00
parent ca28f01968
commit 4ce1213cfd

View File

@@ -13,6 +13,9 @@ RUN npm ci
# Copy entire project # Copy entire project
COPY . . COPY . .
# Create a .env file before build
RUN echo "NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY" > .env
# Build the Next.js app # Build the Next.js app
RUN npm run build RUN npm run build