21 lines
No EOL
440 B
Docker
21 lines
No EOL
440 B
Docker
FROM golang:1.19-alpine AS build-env
|
|
|
|
# Required for mattn/go-sqlite3
|
|
ENV CGO_ENABLED=1
|
|
|
|
RUN set -ex && \
|
|
apk upgrade --no-cache --available && \
|
|
apk add --no-cache build-base gcc musl-dev
|
|
|
|
WORKDIR /maddy-hostux-check-password
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . ./
|
|
|
|
RUN make
|
|
|
|
FROM foxcpp/maddy:0.6
|
|
|
|
COPY --from=build-env /maddy-hostux-check-password/build/maddy-hostux-check-password /bin/maddy-hostux-check-password |