-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 974 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 974 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
25
26
27
28
29
30
31
32
33
34
35
36
FROM selenium/standalone-chrome AS builder
USER root
WORKDIR /tmp
COPY requirements.txt .
COPY docker/install-chromedriver.sh .
RUN apt update && \
apt install -y wget vim git && \
apt remove -y python3-pip && \
wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py --break-system-packages && \
apt clean && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
RUN pip install --force --upgrade --break-system-packages --no-cache-dir -r requirements.txt
RUN ln -s /opt/google/chrome/chrome /usr/local/bin/chrome
RUN ln -s /opt/google/chrome/google-chrome /usr/local/bin/google-chrome
FROM builder AS runner
LABEL maintainer="naisanza@gmail.com"
LABEL description="autohotkey for websites"
WORKDIR /autositekey
COPY autositekey autositekey
COPY README.md .
COPY LICENSE .
COPY docker/entry.sh .
RUN chown -R ${SEL_UID}:${SEL_GID} .
USER ${SEL_UID}:${SEL_GID}
#CMD ["/bin/bash"]
ENTRYPOINT ["/bin/bash", "entry.sh"]