π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Runtime configurable env vars
Manav Rathidfda91b99b9e
diff --git a/web/Dockerfile b/web/Dockerfileindex 736b6d3968..e201e7be7b 100644--- a/web/Dockerfile+++ b/web/Dockerfile@@ -1,11 +1,5 @@FROM node:20-alpine AS builder-ARG ENTE_API_ORIGIN=http://localhost:8080-ARG ENTE_ALBUMS_APP_ORIGIN=https://localhost:3002--ENV NEXT_PUBLIC_ENTE_ENDPOINT="$ENTE_API_ORIGIN"-ENV NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT="$ENTE_ALBUMS_APP_ORIGIN"-WORKDIR /buildCOPY . .@@ -20,7 +14,6 @@ FROM nginxWORKDIR /outCOPY --from=builder /build/apps/photos/out /out/photos-COPY --from=builder /build/apps/photos/out /out/albumsCOPY --from=builder /build/apps/accounts/out /out/accountsCOPY --from=builder /build/apps/auth/out /out/authCOPY --from=builder /build/apps/cast/out /out/cast@@ -35,7 +28,7 @@ server {location / { try_files \$uri \$uri/ \$uri.html /index.html; }}server {- listen 3002; root /out/albums;+ listen 3002; root /out/photos;location / { try_files \$uri \$uri/ \$uri.html /index.html; }}server {@@ -53,3 +46,13 @@ EXPOSE 3001EXPOSE 3002EXPOSE 3003EXPOSE 3004++ENV ENTE_API_ORIGIN=http://localhost:8080+ENV ENTE_ALBUMS_ORIGIN=https://localhost:3002++COPY <<EOF /docker-entrypoint.d/replace-ente-env.sh+find /out -name '*.js' | xargs sed -i'' "s#https://api.ente.io#\$ENTE_API_ORIGIN#"+find /out/photos -name '*.js' | xargs sed -i'' "s#https://albums.ente.io#\$ENTE_ALBUMS_ORIGIN#"+EOF++RUN chmod +x /docker-entrypoint.d/replace-ente-env.sh