Update Container to python3
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user