Commit d11f6d9b authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: add Supabase env vars to Dockerfile for deploy persistence

The .env file was not being included in Docker builds (gitignored),
causing all API calls to fail with 401 after each redeployment.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 273a7241
...@@ -9,6 +9,11 @@ RUN echo "upload_max_filesize = 10M\npost_max_size = 12M\nmax_file_uploads = 5" ...@@ -9,6 +9,11 @@ RUN echo "upload_max_filesize = 10M\npost_max_size = 12M\nmax_file_uploads = 5"
RUN a2enmod rewrite headers RUN a2enmod rewrite headers
ENV APACHE_DOCUMENT_ROOT=/var/www/html ENV APACHE_DOCUMENT_ROOT=/var/www/html
ENV SUPABASE_URL=https://safe-supabase-kong.caprover.al-arcade.com
ENV SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InN1cGFiYXNlIiwiaWF0IjoxNzM1Njg5NjAwLCJleHAiOjE4OTM0NTYwMDB9.31PF6PvP-pSrvRuQwLFptQoejR0W1A7o53lZhEbnz84
ENV SUPABASE_SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaXNzIjoic3VwYWJhc2UiLCJpYXQiOjE3MzU2ODk2MDAsImV4cCI6MTg5MzQ1NjAwMH0.wNfmuJNkX-bZwD7RbjxOChlRf_3Xm4I7bswEYTcDCg4
ENV STOCKFISH_API=https://stockfishapi.caprover.al-arcade.com
ENV SWISS_API=https://swissapi.caprover.al-arcade.com/api/v1
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment