surrealpatch/Dockerfile

12 lines
501 B
Text
Raw Normal View History

# 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
# Declare a build-time argument for the target architecture
ARG TARGETARCH
2020-06-30 10:10:44 +00:00
# Add the binary file 'surreal' from the specified path on the host machine to the root directory in the container
ADD $TARGETARCH/surreal /
2020-06-30 10:10:44 +00:00
# Set the entry point for the container to be the 'surreal' binary
ENTRYPOINT ["/surreal"]