File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build \
15
15
-asmflags all=-trimpath=/ \
16
16
main.go
17
17
18
+ RUN CGO_ENABLED=0 GOOS=js GOARCH=wasm GO111MODULE=on go build \
19
+ -a -o _output/main.wasm \
20
+ -gcflags all=-trimpath=/ \
21
+ -asmflags all=-trimpath=/ \
22
+ cmd/wasm/wasm.go
23
+
18
24
# web build
19
25
FROM node:lts-slim AS builder_npm
20
26
@@ -39,6 +45,7 @@ FROM debian:buster-slim
39
45
RUN apt-get update && apt-get install -y ca-certificates
40
46
41
47
COPY --from=builder_go /csgo-2d-demo-player/_output/main /csgo-2d-demo-player/
48
+ COPY --from=builder_go /csgo-2d-demo-player/_output/main.wasm /csgo-2d-demo-player/wasm/
42
49
COPY --from=builder_npm /csgo-2d-demo-player/web/dist/assets/. /csgo-2d-demo-player/assets/
43
50
COPY --from=builder_npm /csgo-2d-demo-player/web/dist/ /csgo-2d-demo-player/web/dist/
44
51
You can’t perform that action at this time.
0 commit comments