refactor: remove WASM build stage from Dockerfile
- Removed multi-stage WASM artifact building using rust:1-bullseye - Eliminated dependencies on wasm-pack and protobuf-compiler - Simplified Docker build by removing WASM-related COPY operations - Streamlines build process by focusing solely on Go binary construction
lemon-mint committed
Oct 29, 2025 at 15:46 UTC
787c8f7b17827d1ea9ef969a5ba650497bef3d62
1 file changed
-18
Dockerfile
-18
@@ -1,19 +1,3 @@
1
-#############################################
2
-# Stage 1: Build WASM artifacts
3
-#############################################
4
-FROM rust:1-bullseye AS wasm-builder
5
-
6
-WORKDIR /src
7
-
8
-# Install dependencies: make + wasm-pack
9
-RUN apt-get update && apt-get install -y --no-install-recommends make protobuf-compiler && rm -rf /var/lib/apt/lists/*
10
-RUN cargo install wasm-pack
11
-
12
-# Build wasm artifacts
13
-COPY . .
14
-RUN make build-wasm
15
-
16
-# Stage 2: Build Go relayserver binary (embeds WASM)
1
FROM golang:1 AS builder
2
3
WORKDIR /src
@@ -23,8 +7,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \
7
go mod download
8
9
COPY . .
26
-COPY --from=wasm-builder /src/cmd/relay-server/wasm /src/cmd/relay-server/wasm
27
-
10
# Install make to use Makefile and build the server
11
RUN apt-get update && apt-get install -y --no-install-recommends make && rm -rf /var/lib/apt/lists/*
12