Skip to content

Commit

Permalink
keep docker image small
Browse files Browse the repository at this point in the history
  • Loading branch information
voutcn committed Oct 15, 2019
1 parent d729cca commit 7dde1ca
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
34 changes: 24 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y g++ make zlib1g-dev gzip bzip2 cmake python --no-install-recommends

COPY . /root/megahit
WORKDIR /root/megahit
RUN rm -rf build
RUN mkdir -p build
WORKDIR build
RUN cmake -DCMAKE_BUILD_TYPE=Release ..
RUN make -j4
RUN make install
RUN megahit --test
RUN megahit --test --kmin-1pass

RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
cmake \
gzip \
g++ \
libgomp1 \
make \
python \
zlib1g-dev && \
rm -rf build && \
mkdir -p build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make -j4 install && \
apt-get autoremove --purge -y \
cmake \
g++ \
make \
zlib1g-dev

RUN megahit --test && megahit --test --kmin-1pass
ENTRYPOINT ["megahit"]
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
trigger:
paths:
exclude:
- '*.md'
- Dockerfile
- .travis.yml

jobs:
- job: ubuntu_1604
pool:
Expand Down

0 comments on commit 7dde1ca

Please sign in to comment.