Skip to content

Commit 6987d22

Browse files
committed
[Zig/Httpz] update dockerfile 3
1 parent 51114af commit 6987d22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frameworks/Zig/httpz/httpz.dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM eloitor/zig:0.13.0 AS build
22

3-
ARG ZIG_VER=0.13
43
ENV PG_USER=benchmarkdbuser
54
ENV PG_PASS=benchmarkdbpass
65
ENV PG_DB=hello_world
@@ -9,7 +8,9 @@ ENV PG_PORT=5432
98

109
WORKDIR /app
1110

12-
COPY . .
11+
COPY src src
12+
COPY build.zig.zon build.zig.zon
13+
COPY build.zig build.zig
1314

1415
RUN zig build -Doptimize=ReleaseFast
1516

@@ -19,4 +20,6 @@ RUN apt-get update && apt-get install -y ca-certificates
1920

2021
COPY --from=build /app/zig-out/bin/httpz /server
2122

23+
EXPOSE 3000
24+
2225
CMD ["/server"]

0 commit comments

Comments
 (0)