From 16cb1dfbe7f4879e9a84555d8bf900ce70877e42 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 18 Aug 2024 20:47:28 +0300 Subject: [PATCH] fixed Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6df0d9..bba7221 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine as build +FROM golang:alpine AS build RUN apk add --no-cache git @@ -12,8 +12,8 @@ RUN go install -v ./... RUN go build -o main . -FROM alpine:latest as certs -RUN apk --update add ca-certificates +FROM alpine:latest AS certs +RUN apk --no-cache add ca-certificates FROM bash:latest COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt