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
```sh
docker build -t grin .
docker build -t grin -f etc/Dockerfile .
```
You can bind-mount your grin cache to run inside the container.
```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

View file

@ -85,13 +85,13 @@ grin client help
## Docker
```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
```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

View file

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