File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1- FROM eloitor/zig:0.13.0
1+ FROM debian:12.9
22
33ENV PG_USER=benchmarkdbuser
44ENV PG_PASS=benchmarkdbpass
@@ -12,10 +12,20 @@ COPY src src
1212COPY build.zig.zon build.zig.zon
1313COPY build.zig build.zig
1414
15- RUN zig build -Doptimize=ReleaseFast
15+ ARG ZIG_VER=0.13.0
16+
17+ RUN apt-get update && apt-get install -y curl xz-utils
18+
19+ RUN curl https://ziglang.org/download/${ZIG_VER}/zig-linux-$(uname -m)-${ZIG_VER}.tar.xz -o zig-linux.tar.xz && \
20+ tar xf zig-linux.tar.xz && \
21+ mv zig-linux-$(uname -m)-${ZIG_VER}/ /opt/zig
22+
23+ RUN /opt/zig/zig build -Doptimize=ReleaseFast
24+
25+ FROM debian:12.9-slim
1626
1727RUN apt-get update && apt-get install -y ca-certificates
1828
19- EXPOSE 3000
29+ COPY --from=build /app/zig-out/bin/zzz /server
2030
21- CMD ./app/zig-out/bin/httpz
31+ CMD [ "/server" ]
You can’t perform that action at this time.
0 commit comments