Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 3cefddb

Browse files
committed
Remove doppler docker and add upx
1 parent b4554d5 commit 3cefddb

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Build Stage: Build bot using the alpine image, also install doppler in it
22
FROM golang:1.20.4-alpine AS builder
3-
RUN apk add --update --no-cache git
3+
RUN apk add --update --no-cache git upx
44
WORKDIR /app
55
COPY . .
66
RUN CGO_ENABLED=0 GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o out/RestrictChannelRobot -ldflags="-w -s" .
7+
RUN upx out/RestrictChannelRobot
78

89
# Run Stage: Run bot using the bot and doppler binary copied from build stage
910
FROM alpine:3.18.0

Dockerfile.doppler

Lines changed: 0 additions & 15 deletions
This file was deleted.

goreleaser.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM alpine:3.18.0
22
COPY restrictchannelrobot /
33
CMD ["/restrictchannelrobot"]
4+
45
LABEL org.opencontainers.image.authors="Divanshu Chauhan <[email protected]>"
56
LABEL org.opencontainers.image.url="https://divkix.me"
67
LABEL org.opencontainers.image.source="https://github.com/divkix/RestrictChannelRobot"

0 commit comments

Comments
 (0)