fixed Dockerfile
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

This commit is contained in:
Struchkov Mark 2024-08-18 20:47:28 +03:00
parent efa8ded7c5
commit 16cb1dfbe7
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -1,4 +1,4 @@
FROM golang:alpine as build FROM golang:alpine AS build
RUN apk add --no-cache git RUN apk add --no-cache git
@ -12,8 +12,8 @@ RUN go install -v ./...
RUN go build -o main . RUN go build -o main .
FROM alpine:latest as certs FROM alpine:latest AS certs
RUN apk --update add ca-certificates RUN apk --no-cache add ca-certificates
FROM bash:latest FROM bash:latest
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt