Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

docker

Manav Rathi8c0fb77f111d
diff --git a/.github/workflows/web-publish-ghcr.yml b/.github/workflows/web-publish-ghcr.yml
index d03e28f7c5..5f5dbb2e9c 100644
--- a/.github/workflows/web-publish-ghcr.yml
+++ b/.github/workflows/web-publish-ghcr.yml
@@ -22,7 +22,7 @@ jobs:
uses: mr-smithers-excellent/docker-build-push@v6
with:
dockerfile: web/Dockerfile
- directory: web
+ directory: . # repo root
# Resultant package name will be ghcr.io/ente-io/web
image: web
registry: ghcr.io
diff --git a/web/Dockerfile b/web/Dockerfile
index 2378d92958..0d3085cadb 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -2,8 +2,16 @@
FROM node:22-alpine AS builder
+# Install Rust for building ente-wasm
+RUN apk add --no-cache curl build-base && \
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --target wasm32-unknown-unknown
+ENV PATH="/root/.cargo/bin:${PATH}"
+
WORKDIR /build
-COPY . .
+COPY web/ ./web
+COPY rust/core ./rust/core
+
+WORKDIR /build/web
ENV NEXT_PUBLIC_ENTE_ENDPOINT=ENTE_API_ORIGIN_PLACEHOLDER
ENV NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=ENTE_ALBUMS_ORIGIN_PLACEHOLDER
@@ -24,12 +32,12 @@ FROM nginx
WORKDIR /out
-COPY --from=builder /build/apps/photos/out /out/photos
-COPY --from=builder /build/apps/accounts/out /out/accounts
-COPY --from=builder /build/apps/auth/out /out/auth
-COPY --from=builder /build/apps/cast/out /out/cast
-COPY --from=builder /build/apps/share/out /out/share
-COPY --from=builder /build/apps/embed/out /out/embed
+COPY --from=builder /build/web/apps/photos/out /out/photos
+COPY --from=builder /build/web/apps/accounts/out /out/accounts
+COPY --from=builder /build/web/apps/auth/out /out/auth
+COPY --from=builder /build/web/apps/cast/out /out/cast
+COPY --from=builder /build/web/apps/share/out /out/share
+COPY --from=builder /build/web/apps/embed/out /out/embed
COPY <<EOF /etc/nginx/conf.d/default.conf
server {