forked from meta-toolkit/meta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request meta-toolkit#77 from zero323/develop
Add dockerfile to contrib
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM debian:jessie | ||
|
||
MAINTAINER Maciej Szymkiewicz "[email protected]" | ||
|
||
ENV METADIR /opt/meta | ||
RUN mkdir -p $METADIR | ||
|
||
RUN apt-get update && apt-get -y install cmake libicu-dev git g++ && apt-get clean | ||
|
||
WORKDIR $METADIR | ||
RUN git clone --depth 1 https://github.com/meta-toolkit/meta.git . | ||
RUN git submodule update --init --recursive | ||
RUN mkdir $METADIR/build | ||
|
||
WORKDIR $METADIR/build | ||
RUN cp $METADIR/config.toml . | ||
RUN cmake $METADIR -DCMAKE_BUILD_TYPE=Release && make | ||
RUN ctest --output-on-failure | ||
|
||
RUN apt-get -y purge git && apt-get -y autoremove |