-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
23 lines (18 loc) · 948 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
FROM docker.io/openv2x/cerebrum-base:latest
ARG GIT_BRANCH
ARG GIT_COMMIT
ARG RELEASE_VERSION
ARG REPO_URL
LABEL cerebrum.build_branch=${GIT_BRANCH} \
cerebrum.build_commit=${GIT_COMMIT} \
cerebrum.release_version=${RELEASE_VERSION} \
cerebrum.repo_url=${REPO_URL}
WORKDIR /home/www/cerebrum
COPY . /home/www/cerebrum
RUN cp /home/www/cerebrum/start.sh /usr/local/bin/start.sh \
&& pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /home/www/cerebrum/requirements.txt \
&& pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /home/www/cerebrum/requirements/algo.txt \
&& pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /home/www/cerebrum/overspeed_warning_service/requirements.txt \
&& pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /home/www/cerebrum/reverse_driving_service/requirements.txt \
&& pip install /home/www/cerebrum
CMD ["sh", "/usr/local/bin/start.sh"]