Upgrade all the packages on the final stage
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This way we get latest security fixes.
This commit is contained in:
parent
56540639e0
commit
3cf55a9700
|
@ -2,7 +2,7 @@ FROM golang:1.17-alpine3.15 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk --no-cache add git
|
RUN apk -U --no-cache add git
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ FROM alpine:3.15
|
||||||
|
|
||||||
COPY --from=builder /app/telegram-group2mastodon /bin/telegram-group2mastodon
|
COPY --from=builder /app/telegram-group2mastodon /bin/telegram-group2mastodon
|
||||||
|
|
||||||
|
RUN apk -U --no-cache upgrade
|
||||||
|
|
||||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||||
|
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
Loading…
Reference in a new issue