Fix multi-stage build with slog

This commit is contained in:
IamTheFij 2020-08-19 12:51:30 -07:00
parent 1fc9672971
commit a572bd6635

View File

@ -1,5 +1,5 @@
ARG REPO=library ARG REPO=library
FROM golang:1.12-alpine AS builder FROM golang:1.15-alpine AS builder
# hadolint ignore=DL3018 # hadolint ignore=DL3018
RUN apk add --no-cache git RUN apk add --no-cache git
@ -11,6 +11,7 @@ COPY ./go.mod ./go.sum /app/
RUN go mod download RUN go mod download
COPY ./main.go /app/ COPY ./main.go /app/
COPY ./slog /app/slog
ARG ARCH=amd64 ARG ARCH=amd64
ARG VERSION=dev ARG VERSION=dev