You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FLEcli/docker/Dockerfile

17 lines
491 B

FROM alpine:3.12 AS builder
# Copy the executable and make it executable
COPY FLEcli /temp_bin/FLEcli
RUN chmod +x /temp_bin/FLEcli
#we switch to the bare image template as we want the lightest image as possible
FROM scratch
#We retrieve the prepared binary and place it in the appropriate location
COPY --from=builder /temp_bin/FLEcli /FLEcli_bin/FLEcli
# Create the data directory and set it as the defautl directory
WORKDIR /FLEcli_data
ENTRYPOINT ["/FLEcli_bin/FLEcli"]
CMD ["help"]