-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
34 lines (27 loc) · 794 Bytes
/
Dockerfile
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
# Use the DOCKER HUB to download the chromiums and then push back to git
FROM python:latest
MAINTAINER Ken Wang <[email protected]>
ENV LANG C.UTF-8
ENV REFRESHED_AT 2019-10-20
# Variables & Environments
ARG GIT_TOKEN=0
ARG GIT_REPO=https://${GIT_TOKEN}@github.com/Bugazelle/chromium-all-old-stable-versions.git
ARG GIT_NAME=Bugazelle
ARG GIT_BRANCH=master
ARG FORCE_CRAWL=false
ENV HOME=/home/chromium
# Copy src to docker
COPY ./src/ $HOME/src
COPY ./chromium.stable.json $HOME
COPY ./chromium.stable.csv $HOME
# Set working directory
WORKDIR $HOME
# Run: Install basic components
RUN chmod -R +x $HOME/src && \
ls -l $HOME/src && \
$HOME/src/base.sh
# Run: Download chromiums
RUN $HOME/src/chromium.sh
# Run: Push back to git
RUN $HOME/src/git.sh