From cda7fbb40ce4f539827b114cd03e1aa8645ca9d6 Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Mon, 4 Apr 2022 23:27:28 +0200 Subject: [PATCH] Group stages in 2 blocks --- Dockerfile | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5beaf95..abbee67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,13 @@ FROM golang:1.17-alpine3.15 AS builder - WORKDIR /app - RUN apk -U --no-cache add git - COPY . . - RUN go build FROM alpine:3.15 - LABEL LastUpdate="2022-04-04" - COPY --from=builder /app/telegram-group2mastodon /bin/telegram-group2mastodon - RUN apk -U --no-cache upgrade - RUN addgroup -S appgroup && adduser -S appuser -G appgroup - USER appuser - ENTRYPOINT /bin/telegram-group2mastodon run