surrealpatch/Dockerfile

12 lines
398 B
Text
Raw Normal View History

# Use the distroless/cc:latest image as the base image
FROM gcr.io/distroless/cc:latest
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"]