Fix and update Docker image

This commit is contained in:
Quentin Le Sceller 2018-11-30 10:35:24 -05:00
parent 93a4653e36
commit 798565d02e
No known key found for this signature in database
GPG key ID: 76248AC90C33D34F
3 changed files with 12 additions and 12 deletions

View file

@ -94,13 +94,13 @@ grin client help
## Docker ## Docker
```sh ```sh
docker build -t grin . docker build -t grin -f etc/Dockerfile .
``` ```
You can bind-mount your grin cache to run inside the container. You can bind-mount your grin cache to run inside the container.
```sh ```sh
docker run -it -d -v $HOME/.grin:/root/.grin grin docker run -it -d -v $HOME/.grin:/root/.grin -f etc/Dockerfile grin
``` ```
## Cross-platform builds ## Cross-platform builds

View file

@ -85,13 +85,13 @@ grin client help
## Docker ## Docker
```sh ```sh
docker build -t grin . docker build -t grin -f etc/Dockerfile .
``` ```
Puede ubicar la caché de Grin para que se ejecute dentro del contenedor Puede ubicar la caché de Grin para que se ejecute dentro del contenedor
```sh ```sh
docker run -it -d -v $HOME/.grin:/root/.grin grin docker run -it -d -v $HOME/.grin:/root/.grin -f etc/Dockerfile grin
``` ```
## Compilación multiplataforma ## Compilación multiplataforma

View file

@ -1,18 +1,18 @@
# Multistage docker build, requires docker 17.05 # Multistage docker build, requires docker 17.05
# builder stage # builder stage
FROM rust:1.29.0 as builder FROM rust:1.30.1 as builder
RUN set -ex && \ RUN set -ex && \
apt-get update && \ apt-get update && \
apt-get --no-install-recommends --yes install \ apt-get --no-install-recommends --yes install \
clang \ clang \
libclang-dev \ libclang-dev \
llvm-dev \ llvm-dev \
libncurses5 \ libncurses5 \
libncursesw5 \ libncursesw5 \
cmake \ cmake \
git git
WORKDIR /usr/src/grin WORKDIR /usr/src/grin