Skip to content

Commit

Permalink
Add run_nginx check to see if file is found
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Jan 2, 2025
1 parent 2ea49ff commit af2052b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit af2052b

Please sign in to comment.