1
0
Fork 0
mirror of https://github.com/on4kjm/FLEcli.git synced 2025-01-18 21:01:10 +01:00
FLEcli/docker/Dockerfile

17 lines
491 B
Text
Raw Normal View History

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-27 22:26:43 +02:00
#we switch to the bare image template as we want the lightest image as possible
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
# Create the data directory and set it as the defautl directory
WORKDIR /FLEcli_data
ENTRYPOINT ["/FLEcli_bin/FLEcli"]
CMD ["help"]