Skip to content

Commit e2e926e

Browse files
authoredAug 2, 2021
Merge pull request #8 from marcionicolau/master
Update Dockerfile for better structure
2 parents 7eec4ca + 9ab8634 commit e2e926e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed
 

‎Dockerfile

+8-10
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ LABEL version="1.0"
55
LABEL Description="MIS"
66

77
# get curl, etc
8-
RUN apt-get update
9-
RUN apt-get install --no-install-recommends -y software-properties-common
10-
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
11-
RUN apt-get update
12-
RUN apt-get install --no-install-recommends -y make g++
13-
RUN apt-get install --no-install-recommends -y zlib1g-dev git libboost-dev
14-
RUN apt-get install --no-install-recommends -y git
8+
RUN apt-get update && apt-get install --no-install-recommends -y software-properties-common && \
9+
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
10+
apt-get update && \
11+
apt-get install --no-install-recommends -y make g++ zlib1g-dev git libboost-dev && \
12+
rm -rf /var/lib/apt/lists/*
1513

1614
# build mis
1715
USER root
1816
COPY . /mis
1917
WORKDIR /mis
2018
RUN rm -rf muser2-dir
21-
RUN git clone https://github.com/meelgroup/muser muser2-dir
22-
RUN make static
19+
RUN git clone https://github.com/meelgroup/muser muser2-dir && \
20+
make static
2321

2422
# set up for running
2523
FROM ubuntu:16.04
@@ -29,7 +27,7 @@ COPY --from=builder /mis/mis.py /usr/local/bin/
2927
COPY --from=builder /mis/togmus /usr/local/bin/
3028
COPY --from=builder /mis/muser2-dir/src/tools/muser2/muser2 /usr/local/bin/
3129
WORKDIR /usr/local/bin/
32-
ENTRYPOINT ["/usr/local/bin/mis.py", "--bin","./muser2"]
30+
ENTRYPOINT ["/usr/local/bin/mis.py", "--muser2bin","./muser2"]
3331

3432
# --------------------
3533
# HOW TO USE

0 commit comments

Comments
 (0)
Please sign in to comment.