fix dockerfile
This commit is contained in:
parent
0f278d516b
commit
19c249a6d1
@ -1,17 +1,19 @@
|
|||||||
FROM golang:1.10-alpine as builder
|
FROM golang:1.10-alpine as builder
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
RUN mkdir /app
|
RUN mkdir -p /go/src/github.com/thomseddon/traefik-forward-auth
|
||||||
WORKDIR /app
|
WORKDIR /go/src/github.com/thomseddon/traefik-forward-auth
|
||||||
|
|
||||||
# Add libraries
|
# Add libraries
|
||||||
RUN apk add --no-cache git && \
|
RUN apk add --no-cache git && \
|
||||||
|
go get "github.com/BurntSushi/toml" && \
|
||||||
|
go get "github.com/gorilla/mux" && \
|
||||||
go get "github.com/namsral/flag" && \
|
go get "github.com/namsral/flag" && \
|
||||||
go get "github.com/sirupsen/logrus" && \
|
go get "github.com/sirupsen/logrus" && \
|
||||||
apk del git
|
apk del git
|
||||||
|
|
||||||
# Copy & build
|
# Copy & build
|
||||||
ADD . /app/
|
ADD . /go/src/github.com/thomseddon/traefik-forward-auth/
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /traefik-forward-auth .
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /traefik-forward-auth .
|
||||||
|
|
||||||
# Copy into scratch container
|
# Copy into scratch container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user