Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuka committed Mar 22, 2019
1 parent ab0128a commit 3362214
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ ENV GOPATH /go

COPY . ${GOPATH}/src/github.com/mosuka/blast

RUN apt update && \
apt upgrade && \
apt install -y \
RUN apt-get update && \
apt-get install -y \
git \
golang \
libicu-dev \
Expand All @@ -31,7 +30,7 @@ RUN apt update && \
gcc-4.8 \
g++-4.8 \
build-essential && \
apt clean && \
apt-get clean && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 80 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90 && \
Expand All @@ -54,13 +53,12 @@ FROM ubuntu:18.10

MAINTAINER Minoru Osuka "minoru.osuka@gmail.com"

RUN apt update && \
apt upgrade && \
apt install -y \
RUN apt-get update && \
apt-get install -y \
libicu-dev \
libstemmer-dev \
libleveldb-dev && \
apt clean
apt-get clean

COPY --from=0 /go/src/github.com/blevesearch/cld2/cld2/internal/*.so /usr/local/lib/
COPY --from=0 /go/src/github.com/mosuka/blast/bin/* /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Blast requires some C/C++ libraries if you need to enable cld2, icu, libstemmer
### Ubuntu 18.10

```bash
$ sudo apt install -y \
$ sudo apt-get install -y \
libicu-dev \
libstemmer-dev \
libleveldb-dev \
Expand Down

0 comments on commit 3362214

Please sign in to comment.