forked from graniet/operative-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
27 lines (22 loc) · 964 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
############################
# Builder image
############################
ARG GOLANG_BUILDER_VERSION=1.13rc1-alpine
FROM golang:${GOLANG_BUILDER_VERSION} AS builder
# Here's a oneliner for your Dockerfile that fails if the Alpine image is vulnerable.
# RUN apk add --no-network --no-cache --repositories-file /dev/null "apk-tools>2.10.1"
# install pre-requisites
RUN apk update && \
apk add --no-cache --no-progress build-base git tzdata ca-certificates sqlite-dev bash nano && \
update-ca-certificates && \
go get github.com/Masterminds/glide && \
go get github.com/golang/dep/cmd/dep
# copy sources
COPY . /go/src/github.com/graniet/operative-framework
WORKDIR /go/src/github.com/graniet/operative-framework
# fetch dependencies
# RUN yes no | glide create && glide install --strip-vendor && go build -o /opf .
# RUN go get -d -v ./...
# RUN glide install --strip-vendor && \
# GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o /opf .
CMD ["/bin/bash"]