surrealpatch/Dockerfile
2023-05-16 23:33:09 +01:00

11 lines
398 B
Docker

# Use the distroless/cc:latest image as the base image
FROM gcr.io/distroless/cc:latest
# Declare a build-time argument for the target architecture
ARG TARGETARCH
# Add the binary file 'surreal' from the specified path on the host machine to the root directory in the container
ADD $TARGETARCH/surreal /
# Set the entry point for the container to be the 'surreal' binary
ENTRYPOINT ["/surreal"]