2023-05-16 22:33:09 +00:00
|
|
|
# Use the distroless/cc:latest image as the base image
|
2022-07-13 09:27:22 +00:00
|
|
|
FROM gcr.io/distroless/cc:latest
|
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-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"]
|