File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments