Skip to content

Commit

Permalink
Added Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Stickland committed Mar 6, 2020
1 parent 506a640 commit 563d5c3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Dockerfile
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"

0 comments on commit 563d5c3

Please sign in to comment.