mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 07:19:16 +02:00
Make dockerfiles consistent between archs
This commit is contained in:
parent
5981f0510c
commit
d0848fd250
3 changed files with 7 additions and 5 deletions
|
@ -15,6 +15,7 @@
|
|||
- Proxy's sign out handler `{}/.pomerium/sign_out` now accepts an optional `redirect_uri` parameter which can be used to specify a custom redirect page, so long as it is under the same top-level domain. [GH-183]
|
||||
- Policy configuration can now be empty at startup. [GH-190]
|
||||
- Websocket support is now set per-route instead of globally. [GH-204]
|
||||
- golint removed from amd64 container
|
||||
|
||||
### FIXED
|
||||
|
||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,19 +1,19 @@
|
|||
FROM golang:latest as build
|
||||
WORKDIR /go/src/github.com/pomerium/pomerium
|
||||
ENV CGO_ENABLED=0
|
||||
ENV GO111MODULE=on
|
||||
# docker build --build-arg ARCH=arm --build-arg ARM=7 .
|
||||
# frustratingly not supported by dockerhub automated builds though
|
||||
ARG ARCH=amd64
|
||||
ARG ARM=7
|
||||
ARG ARM=7
|
||||
|
||||
ENV CGO_ENABLED=0
|
||||
ENV GO111MODULE=on
|
||||
ENV GOARCH=${ARCH}
|
||||
ENV GOARM=${ARM}
|
||||
RUN go get golang.org/x/lint/golint
|
||||
# cache depedency downloads
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
# build
|
||||
# build
|
||||
RUN make
|
||||
RUN touch /config.yaml
|
||||
|
||||
|
|
1
Makefile
1
Makefile
|
@ -50,6 +50,7 @@ fmt: ## Verifies all files have been `gofmt`ed.
|
|||
.PHONY: lint
|
||||
lint: ## Verifies `golint` passes.
|
||||
@echo "==> $@"
|
||||
@go get golang.org/x/lint/golint
|
||||
@golint ./... | grep -v '.pb.go:' | grep -v vendor | tee /dev/stderr
|
||||
|
||||
.PHONY: staticcheck
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue