forked from elastic/curator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
473 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
FROM python:3.6-alpine3.6 as builder | ||
FROM python:3.7-alpine3.7 as builder | ||
|
||
RUN apk --no-cache upgrade && apk --no-cache add build-base tar musl-utils openssl-dev | ||
RUN pip3 install setuptools cx_Freeze==6.0b1 | ||
RUN pip3 install setuptools cx_Freeze | ||
|
||
COPY . . | ||
RUN ln -s /lib/libc.musl-x86_64.so.1 ldd | ||
RUN ln -s /lib /lib64 | ||
RUN pip3 install -r requirements.txt | ||
RUN python3 setup.py build_exe | ||
|
||
FROM alpine:3.6 | ||
RUN apk --no-cache upgrade && apk --no-cache add ca-certificates && update-ca-certificates && apk --no-cache add wget | ||
COPY --from=builder build/exe.linux-x86_64-3.6 /curator/ | ||
FROM alpine:3.7 | ||
RUN apk --no-cache upgrade && apk --no-cache add openssl-dev | ||
COPY --from=builder build/exe.linux-x86_64-3.7 /curator/ | ||
|
||
USER nobody:nobody | ||
ENV LD_LIBRARY_PATH /curator/lib:$LD_LIBRARY_PATH | ||
ENTRYPOINT ["/curator/curator"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.