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