Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run_nginx check to see if file is found #1921

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY . .
RUN npm install
RUN npm run build

FROM nginxinc/nginx-unprivileged:1.23-alpine
FROM nginxinc/nginx-unprivileged:1.27-alpine

WORKDIR /app

Expand Down
6 changes: 6 additions & 0 deletions frontend/run_nginx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash
# Substitute environment variables in the index.html file using the values in the current container environment

# Check if index.html exists in the correct location
if [ ! -f /app/index.html ]; then
echo "Couldn't find index.html"
fi

envsubst '
${VITE_AI_CONNECTION_STRING}
${VITE_BACKEND_URL}
Expand Down
Loading