This commit is contained in:
Stephen 2021-08-09 08:16:35 -07:00 committed by GitHub
parent b03b0c4e93
commit f1c76b23fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -182,6 +182,14 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Hadolint - Master
uses: hadolint/hadolint-action@v1.5.0
with:
Dockerfile: Dockerfile
- name: Hadolint - Debug
uses: hadolint/hadolint-action@v1.5.0
with:
Dockerfile: Dockerfile.debug
- name: build
run: docker build .

View file

@ -1,8 +1,10 @@
# hadolint ignore=DL3007
FROM golang:latest as build
WORKDIR /go/src/github.com/pomerium/pomerium
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get -y install zip
&& apt-get -y --no-install-recommends install zip
# cache depedency downloads
COPY go.mod go.sum ./

View file

@ -1,8 +1,10 @@
# hadolint ignore=DL3007
FROM golang:latest as build
WORKDIR /go/src/github.com/pomerium/pomerium
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get -y install zip
&& apt-get -y --no-install-recommends install zip
# cache depedency downloads
COPY go.mod go.sum ./
@ -16,9 +18,11 @@ RUN make build-debug NAME=pomerium-cli
RUN touch /config.yaml
RUN go get github.com/go-delve/delve/cmd/dlv
# hadolint ignore=DL3007
FROM alpine:latest
ENV AUTOCERT_DIR /data/autocert
WORKDIR /pomerium
# hadolint ignore=DL3018
RUN apk add --no-cache ca-certificates libc6-compat gcompat
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
COPY --from=build /config.yaml /pomerium/config.yaml