Update Container to python3

This commit is contained in:
TKE
2021-03-16 20:10:26 +01:00
parent 8a4bbc91bd
commit 0d374d6bdb
2 changed files with 13 additions and 10 deletions

View File

@@ -1,16 +1,19 @@
FROM alpine
FROM alpine AS builder
MAINTAINER tabledevil
COPY nsrl /nsrl
RUN apk add -U tini gcc libc-dev python-dev py-pip p7zip python \
&& pip install pybloom \
RUN apk add -U tini alpine-sdk python3 python3-dev py3-pip p7zip \
&& python3 -m pip install git+https://github.com/jaybaird/python-bloomfilter/ \
&& /nsrl/shrink_nsrl.sh \
&& apk del --purge gcc libc-dev python-dev py-pip p7zip \
&& apk del --purge alpine-sdk py3-pip python3-dev p7zip \
&& rm -rf /tmp/* /root/.cache /var/cache/apk/* /nsrl/shrink_nsrl.sh
FROM alpine
LABEL maintainer="tabledevil"
COPY --from=builder / /
WORKDIR /nsrl
ENTRYPOINT ["/sbin/tini","--","/nsrl/search.py"]
ENTRYPOINT ["/sbin/tini","--","python3","/nsrl/search.py"]
CMD ["-h"]