2020-05-11 17:50:45 +08:00
|
|
|
FROM alpine:3.11
|
2019-06-16 23:36:22 +08:00
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2019-06-26 00:52:05 +08:00
|
|
|
#RUN addgroup -S olefy && adduser -S olefy -G olefy \
|
2019-06-16 23:36:22 +08:00
|
|
|
RUN apk add --virtual .build-deps gcc python3-dev musl-dev libffi-dev openssl-dev \
|
|
|
|
&& apk add --update --no-cache python3 openssl tzdata libmagic \
|
|
|
|
&& pip3 install --upgrade pip \
|
|
|
|
&& pip3 install --upgrade oletools asyncio python-magic \
|
|
|
|
&& apk del .build-deps
|
|
|
|
|
2019-06-26 00:52:05 +08:00
|
|
|
ADD https://raw.githubusercontent.com/HeinleinSupport/olefy/master/olefy.py /app/
|
|
|
|
|
|
|
|
RUN chown -R nobody:nobody /app /tmp
|
|
|
|
|
|
|
|
USER nobody
|
2019-06-16 23:36:22 +08:00
|
|
|
|
|
|
|
CMD ["python3", "-u", "/app/olefy.py"]
|