Dockerfile test
All checks were successful
Docker Build / build (push) Successful in 1m56s

This commit is contained in:
bedroomghost 2025-04-18 10:27:03 +02:00
parent cccc264a78
commit 51eb8cb4a2
2 changed files with 5 additions and 5 deletions

View File

@ -17,12 +17,11 @@ jobs:
- name: Build Docker Image - name: Build Docker Image
run: | run: |
docker build \ docker build -t git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }} .
-t git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} .
- name: Push Docker Image - name: Push Docker Image
run: | run: |
docker tag git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} git.ambeles.nl/bedroomghost/gpx-viewer:latest docker tag git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }} git.ambeles.nl/bedroomghost/gpx-studio:latest
docker push git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} docker push git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }}
docker push git.ambeles.nl/bedroomghost/gpx-viewer:latest docker push git.ambeles.nl/bedroomghost/gpx-studio:latest

View File

@ -22,6 +22,7 @@ EXPOSE 5173
# Create a simple startup script that injects the token from env var # Create a simple startup script that injects the token from env var
RUN echo '#!/bin/sh' > /app/start.sh && \ RUN echo '#!/bin/sh' > /app/start.sh && \
echo 'echo "PUBLIC_MAPBOX_TOKEN=$PUBLIC_MAPBOX_TOKEN" > /app/website/.env' >> /app/start.sh && \ echo 'echo "PUBLIC_MAPBOX_TOKEN=$PUBLIC_MAPBOX_TOKEN" > /app/website/.env' >> /app/start.sh && \
echo 'find /app/website -type f -name "*.js" -o -name "*.ts" -o -name "*.svelte" | xargs sed -i "s|https://brouter.gpx.studio|https://brouter.ambeles.nl|g"' >> /app/start.sh && \
echo 'cd /app/website && npm run dev -- --host 0.0.0.0' >> /app/start.sh && \ echo 'cd /app/website && npm run dev -- --host 0.0.0.0' >> /app/start.sh && \
chmod +x /app/start.sh chmod +x /app/start.sh