Skip to content

Commit 563d5c3

Browse files
author
Tim Stickland
committed
Added Dockerfile.
1 parent 506a640 commit 563d5c3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG BUILD_DIR=/usr/local/assembly-stats
5+
6+
# Install the dependancies
7+
RUN apt-get update && \
8+
apt-get install --yes apt-utils && \
9+
apt-get --yes upgrade && \
10+
apt-get install --yes build-essential cmake
11+
12+
RUN apt-get install -y locales && \
13+
sed -i -e 's/# \(en_GB\.UTF-8 .*\)/\1/' /etc/locale.gen && \
14+
touch /usr/share/locale/locale.alias && \
15+
locale-gen
16+
ENV LANG en_GB.UTF-8
17+
ENV LANGUAGE en_GB:en
18+
ENV LC_ALL en_GB.UTF-8
19+
20+
COPY . ${BUILD_DIR}
21+
RUN cd ${BUILD_DIR} && \
22+
mkdir build && \
23+
cd build && \
24+
cmake .. && \
25+
make && \
26+
make test && \
27+
make install
28+
RUN cd ${BUILD_DIR}/build && \
29+
make clean && \
30+
cd .. && \
31+
rm -r build && \
32+
apt-get remove --yes build-essential cmake
33+
34+
CMD echo "Usage: docker run -v \`pwd\`:/var/data -it <IMAGE_NAME> bash"; \
35+
echo ""; \
36+
echo "This will place you in a shell with your current working directory accessible as /var/data."; \
37+
echo "" ;\
38+
echo "For help:"; \
39+
echo " assembly-stats"

0 commit comments

Comments
 (0)