udpates on the dockerfile and nginx changes regarding secret key

This commit is contained in:
2026-06-15 19:57:08 +05:30
parent f907926855
commit a0586dc11c
2 changed files with 6 additions and 3 deletions

View File

@@ -18,6 +18,9 @@ RUN npm run build
# Stage 2: Serve the application with Nginx
FROM nginx:alpine
# Set the default Hasura admin secret (can be overridden at runtime)
ENV HASURA_ADMIN_SECRET="nearle-admin-secret"
# Move to Nginx's public folder
WORKDIR /usr/share/nginx/html
@@ -27,8 +30,8 @@ RUN rm -rf ./*
# Copy the compiled static assets FROM THE BUILDER STAGE
COPY --from=builder /app/dist/ .
# Copy the Nginx configuration as a template so env variables (like HASURA_ADMIN_SECRET) are substituted at runtime
COPY nginx.conf /etc/nginx/templates/default.conf.template
# Copy your custom Nginx configuration into the conf.d directory so it gets included properly
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80