mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
Hadolint (#2363)
This commit is contained in:
parent
b03b0c4e93
commit
f1c76b23fc
3 changed files with 16 additions and 2 deletions
8
.github/workflows/test.yaml
vendored
8
.github/workflows/test.yaml
vendored
|
@ -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 .
|
||||
|
||||
|
|
|
@ -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 ./
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue