forked from loblab/noip-renew
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 668 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian
LABEL maintainer="loblab"
ARG DEBIAN_FRONTED=noninteractive
ARG PYTHON=python3
ENV CONTAINER=1
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install chromium-chromedriver || \
apt-get -y install chromium-driver || \
apt-get -y install chromedriver
RUN apt-get -y install ${PYTHON}-pip
RUN apt-get -y install ${PYTHON}-selenium
RUN apt-get -y install ${PYTHON}-pyotp
RUN apt-get -y install curl wget
RUN mkdir -p /home/loblab && \
useradd -d /home/loblab -u 1001 loblab && \
chown loblab:loblab /home/loblab
USER loblab
WORKDIR /home/loblab
COPY /noip-renew.py /home/loblab/
ENTRYPOINT ["python3", "/home/loblab/noip-renew.py"]