Peter il a la méga chiasse
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
af08e14b88
commit
92dade1312
@ -6,16 +6,14 @@ WORKDIR /build
|
|||||||
# Copy the code from the host and compile it
|
# Copy the code from the host and compile it
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go build
|
|
||||||
|
|
||||||
RUN mkdir res
|
RUN mkdir res
|
||||||
COPY quotes.json res/quotes.json
|
COPY quotes.json res/quotes.json
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app .
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app .
|
||||||
|
|
||||||
# We use Alpine for it's ca-certificates needed by http lib
|
FROM scratch
|
||||||
FROM alpine:latest
|
# We need ca-certifactes for http calls
|
||||||
RUN apk add --no-cache ca-certificates apache2-utils
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
COPY --from=builder /app ./
|
COPY --from=builder /app ./
|
||||||
COPY --from=builder /build/res ./
|
COPY --from=builder /build/res ./
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user