File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed
Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.25 AS builder
1+ FROM golang:1.25-alpine AS builder
22WORKDIR /app
3- RUN apt-get update && apt-get install -y gcc libsqlite3 -dev ca-certificates
3+ RUN apk add --no-cache gcc musl-dev sqlite -dev ca-certificates
44COPY go.mod go.sum ./
55RUN go mod download
66COPY . .
77RUN CGO_ENABLED=1 go build -ldflags="-s -w" -o main ./cmd
88
9- FROM debian:stable-slim
10- RUN apt-get update && \
11- apt-get install -y sqlite3 ca-certificates && \
12- rm -rf /var/lib/apt/lists/*
9+ FROM alpine:3.20
10+ RUN apk add --no-cache sqlite ca-certificates
1311WORKDIR /root/
1412COPY --from=builder /app/main .
1513RUN mkdir -p db && chmod 777 db
1614EXPOSE 8080
17- CMD ["tail" , "-f" , "/dev/null" ]
15+ CMD ["tail" , "-f" , "/dev/null" ]
Original file line number Diff line number Diff line change @@ -17,16 +17,20 @@ The project consists of two main components:
1717
1818```
1919ru-counter/
20- ├── cmd/
21- │ └── main.go # Application entry point
22- ├── internal/
23- │ ├── whatsapp/
24- │ │ └── client.go # WhatsApp newsletter client
25- │ └── github/
26- │ └── updater.go # GitHub repository updater
27- ├── db/ # SQLite session storage
28- ├── docker-compose.yml # Docker configuration
29- └── go.mod # Go dependencies
20+ ├── cmd
21+ │ └── main.go
22+ ├── db
23+ │ └── session.db
24+ ├── docker-compose-prd.yml
25+ ├── Dockerfile
26+ ├── go.mod
27+ ├── go.sum
28+ ├── internal
29+ │ ├── github
30+ │ │ └── updater.go
31+ │ └── whatsapp
32+ │ └── client.go
33+ └── README.md
3034```
3135
3236### Integration with RU Menu
You can’t perform that action at this time.
0 commit comments