2023-08-04 15:39:50 +00:00
# Use ChainGuard's glibc-dynamic image as the base image. More information about this image can be found at https://www.chainguard.dev/chainguard-images
FROM cgr.dev/chainguard/glibc-dynamic
2020-06-30 10:10:44 +00:00
2023-05-16 22:33:09 +00:00
# Declare a build-time argument for the target architecture
2022-07-13 09:27:22 +00:00
ARG TARGETARCH
2020-06-30 10:10:44 +00:00
2023-05-16 22:33:09 +00:00
# Add the binary file 'surreal' from the specified path on the host machine to the root directory in the container
2022-07-13 09:27:22 +00:00
ADD $TARGETARCH/surreal /
2020-06-30 10:10:44 +00:00
2023-09-04 17:28:05 +00:00
USER root
2023-05-16 22:33:09 +00:00
# Set the entry point for the container to be the 'surreal' binary
2022-07-13 09:27:22 +00:00
ENTRYPOINT ["/surreal"]