1
0
Fork 0
telegram-group2mastodon/Dockerfile
Daniele Tricoli 3cf55a9700
All checks were successful
continuous-integration/drone/push Build is passing
Upgrade all the packages on the final stage
This way we get latest security fixes.
2022-03-11 19:10:21 +01:00

22 lines
355 B
Docker

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
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