build-image/README.md

35 lines
924 B
Markdown
Raw Normal View History

# build-image
[![Build Status](https://travis-ci.com/volker-raschek/build-image.svg?branch=master)](https://travis-ci.com/volker-raschek/build-image)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/build-image)](https://hub.docker.com/r/volkerraschek/build-image)
2019-08-19 16:28:06 +00:00
2019-09-13 15:58:20 +00:00
This project, hosted on [github](https://github.com/volker-raschek/build-image),
contains only files to build a build container image.
2019-04-18 17:11:26 +00:00
2019-09-13 15:58:20 +00:00
## Usage
### golang
2019-08-19 16:28:06 +00:00
To use this image for building golang applications execute this in your root
folder of your go project.
2019-04-18 17:11:26 +00:00
```bash
$ docker run \
--rm \
--volume ${PWD}:/workspace \
volkerraschek/build-image:latest \
go build
2019-08-19 16:28:06 +00:00
```
2019-09-13 15:58:20 +00:00
### rust
2019-08-19 16:28:06 +00:00
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
```