Group stages in 2 blocks
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e59c805caa
commit
cda7fbb40c
10
Dockerfile
10
Dockerfile
|
@ -1,23 +1,13 @@
|
||||||
FROM golang:1.17-alpine3.15 AS builder
|
FROM golang:1.17-alpine3.15 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk -U --no-cache add git
|
RUN apk -U --no-cache add git
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go build
|
RUN go build
|
||||||
|
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
|
|
||||||
LABEL LastUpdate="2022-04-04"
|
LABEL LastUpdate="2022-04-04"
|
||||||
|
|
||||||
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 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
|
||||||
|
|
||||||
ENTRYPOINT /bin/telegram-group2mastodon run
|
ENTRYPOINT /bin/telegram-group2mastodon run
|
||||||
|
|
Loading…
Reference in New Issue