feat(rust): add rust compiler

This commit is contained in:
2019-08-19 18:28:06 +02:00
parent 520c35bbfe
commit f7af2d5785
4 changed files with 30 additions and 6 deletions

View File

@ -1,12 +1,28 @@
# build-image [![Build Status](https://travis-ci.com/volker-raschek/build-image.svg?branch=master)](https://travis-ci.com/volker-raschek/build-image)
This project contains only files to build a build container image.
## golang
Execute this in your root folder of your go project.
To use this image for building golang applications execute this in your root
folder of your go project.
```bash
$ docker run \
--rm \
--volume ${PWD}:/workspace \
volkerraschek/build-image:latest \
go build
```
```
## rust
If you want to compile instead go rust sourcecode, than you can do it similar to the golang example.
```bash
$ docker run \
--rm \
--volume ${PWD}:/workspace \
volkerraschek/build-image:latest \
cargo build --release
```