Skip to content

Commit

Permalink
Move docker to latest zig version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmichaud committed Mar 23, 2024
1 parent f3f2390 commit cdc2e76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM nginx:1.23.1
RUN apt update
RUN apt install -y curl xz-utils less git

RUN curl -sOL https://ziglang.org/builds/zig-linux-x86_64-0.10.0-dev.3842+36f4f32fa.tar.xz && \
tar Jxf zig-linux-x86_64-0.10.0-dev.3842+36f4f32fa.tar.xz
RUN curl -sOL https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.3428+d8bb139da.tar.xz && \
tar Jxf zig-linux-x86_64-0.12.0-dev.3428+d8bb139da.tar.xz

RUN git clone http://github.com/jdmichaud/zpz && \
cd zpz && \
git submodule init && \
git submodule update && \
../zig-linux-x86_64-0.10.0-dev.3842+36f4f32fa/zig build wasm -Drelease-small=true
../zig-linux-x86_64-0.12.0-dev.3428+d8bb139da/zig build wasm -Doptimize=ReleaseSmall

RUN cp /zpz/web/* /usr/share/nginx/html && \
cp /zpz/zig-out/lib/zpz6128.wasm /usr/share/nginx/html
RUN cp -r /zpz/web/* /usr/share/nginx/html && \
cp --remove-destination /zpz/zig-out/bin/zpz6128.wasm /usr/share/nginx/html/

0 comments on commit cdc2e76

Please sign in to comment.