build-image/README.md
Markus Pesch 4ed6abb406
Some checks failed
continuous-integration/drone/push Build is failing
fix: update ci
2021-08-31 22:39:00 +02:00

37 lines
1015 B
Markdown

# build-image
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/build-image/status.svg)](https://drone.cryptic.systems/volker.raschek/build-image)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/build-image)](https://hub.docker.com/r/volkerraschek/build-image)
This project contains all sources to build the container image
`docker.io/volkerraschek/build-image`. The primary goal of the image is only
to provide an environment to compile source code like go or rust.
## Usage
### golang
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
```