Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make docker image smaller and quicker
- Loading branch information
Balazs Nadasdi
committed
Jan 16, 2017
1 parent
a52026a
commit 1e8dbd9
Showing
4 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ cmake_install.cmake | |
Makefile | ||
Testing | ||
coverage | ||
coverage.info.cleaned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
FROM ubuntu:latest | ||
FROM alpine:latest | ||
|
||
MAINTAINER Balazs Nadasdi <balazs.nadasdi@cheppers.com> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y gcc g++ cmake \ | ||
lcov libboost-all-dev \ | ||
ruby gem && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN apk add --no-cache \ | ||
boost-dev git \ | ||
gcc g++ cmake make \ | ||
bash perl | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y git-core && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN gem install coveralls-lcov | ||
|
||
VOLUME /code | ||
|
||
WORKDIR /code | ||
|
||
ENTRYPOINT ["./build-and-run.sh"] | ||
RUN cd /tmp/ && \ | ||
git clone https://github.com/linux-test-project/lcov.git && \ | ||
cd lcov && make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters