File: Dockerfile.build

package info (click to toggle)
golang-github-linuxkit-virtsock 0.0~git20220523.1a23e78%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: ansic: 1,481; makefile: 81; sh: 7
file content (16 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang:1.9.2-alpine3.7

# A container to build the sample Go code

RUN apk add --update build-base

ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# The project sources
ADD ./ /go/src/github.com/linuxkit/virtsock
WORKDIR /go/src/github.com/linuxkit/virtsock

VOLUME [ "/go/src/github.com/linuxkit/virtsock/build" ]

CMD make build-binaries