add entrypoint for dockerfile
All checks were successful
Generic zig build / build (push) Successful in 13m26s
All checks were successful
Generic zig build / build (push) Successful in 13m26s
This commit is contained in:
parent
15aac15573
commit
5bbc7e5e57
1 changed files with 6 additions and 1 deletions
|
@ -222,8 +222,13 @@ fn dockerInstallDockerfile(b: *std.Build, docker_step: *std.Build.Step, exe_name
|
|||
\\ENV PATH=/bin
|
||||
\\COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
\\COPY bin/$TARGETPLATFORM/{s} /bin
|
||||
\\ENTRYPOINT ["/bin/{s}"]
|
||||
;
|
||||
const dockerfile_data = try std.fmt.allocPrint(b.allocator, dockerfile_fmt, .{exe_name});
|
||||
const dockerfile_data = try std.fmt.allocPrint(
|
||||
b.allocator,
|
||||
dockerfile_fmt,
|
||||
.{ exe_name, exe_name },
|
||||
);
|
||||
const writefiles = b.addWriteFiles();
|
||||
const dockerfile = writefiles.add("Dockerfile", dockerfile_data);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue