This commit is contained in:
2025-06-01 20:50:09 +02:00
parent 2123757099
commit b74509d45d
4 changed files with 2 additions and 15 deletions

View File

@@ -13,13 +13,6 @@ RUN npm ci
# Copy entire project
COPY . .
## Set it as an environment variable for the build process
#ARG HCAPTCHA_SITE_KEY
#ENV NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY
#
## Create a .env file before build
#RUN echo "NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY"
# Build the Next.js app
RUN npm run build
@@ -35,4 +28,4 @@ COPY --from=builder /app ./
EXPOSE 3000
# Start Next.js in production mode
CMD ["/bin/sh", "-c", "set -a && [ -f .env ] && . .env && set +a && next start"]
CMD ["npm", "run", "start"]