-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 680 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 680 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 maven
RUN apt-get update && apt-get install -y --no-install-recommends automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
RUN curl -sSL "http://apache.mirrors.spacedump.net/thrift/0.11.0/thrift-0.11.0.tar.gz" -o thrift.tar.gz && \
mkdir -p /usr/src/thrift && \
tar zxf thrift.tar.gz -C /usr/src/thrift --strip-components=1 && \
rm thrift.tar.gz && \
cd /usr/src/thrift && \
./configure --without-python --without-cpp && \
make && \
make install && \
cd / && \
rm -rf /usr/src/thrift
COPY . /code
WORKDIR /code
RUN mvn -q compile
# mvn exec:java
ENTRYPOINT [ "mvn", "-q", "exec:java" ]