-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Stickland
committed
Mar 6, 2020
1 parent
506a640
commit 563d5c3
Showing
1 changed file
with
39 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,39 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG BUILD_DIR=/usr/local/assembly-stats | ||
|
||
# Install the dependancies | ||
RUN apt-get update && \ | ||
apt-get install --yes apt-utils && \ | ||
apt-get --yes upgrade && \ | ||
apt-get install --yes build-essential cmake | ||
|
||
RUN apt-get install -y locales && \ | ||
sed -i -e 's/# \(en_GB\.UTF-8 .*\)/\1/' /etc/locale.gen && \ | ||
touch /usr/share/locale/locale.alias && \ | ||
locale-gen | ||
ENV LANG en_GB.UTF-8 | ||
ENV LANGUAGE en_GB:en | ||
ENV LC_ALL en_GB.UTF-8 | ||
|
||
COPY . ${BUILD_DIR} | ||
RUN cd ${BUILD_DIR} && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. && \ | ||
make && \ | ||
make test && \ | ||
make install | ||
RUN cd ${BUILD_DIR}/build && \ | ||
make clean && \ | ||
cd .. && \ | ||
rm -r build && \ | ||
apt-get remove --yes build-essential cmake | ||
|
||
CMD echo "Usage: docker run -v \`pwd\`:/var/data -it <IMAGE_NAME> bash"; \ | ||
echo ""; \ | ||
echo "This will place you in a shell with your current working directory accessible as /var/data."; \ | ||
echo "" ;\ | ||
echo "For help:"; \ | ||
echo " assembly-stats" |