-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (17 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:14.04
MAINTAINER xujintao <xujintao@126.com>
# prepare runtime
RUN echo "===>update apt source" && apt-get -y update && \
echo "===>install software-properties-common" && apt-get -y install software-properties-common && \
echo "===>add ubuntu toolchain repository" && apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && \
echo "===>update apt source list again" && apt-get -y update && \
echo "===>install toolchain " && apt-get -y install libstdc++6 && \
echo "===>install boost" && apt-get -y install libboost-log1.54.0 \
libboost-system1.54.0 \
libboost-thread1.54.0 \
libboost-filesystem1.54.0 && \
echo "===>clean tmp files" && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/temp/*
# host dir -> container dir
ADD ./build/* /opt/www/ratel/
ADD ./restart4docker.sh /opt/www/ratel/restart.sh
CMD /opt/www/ratel/restart.sh