Skip to content

Commit 00477bf

Browse files
email-service
1 parent 1099d0b commit 00477bf

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

backend/email-service/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM golang:1.24-alpine AS builder
2+
3+
WORKDIR /app
4+
5+
RUN apk add --no-cache git ca-certificates tzdata
6+
7+
COPY go.mod go.sum ./
8+
RUN go mod download
9+
10+
COPY . .
11+
12+
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags="-w -s" -o server ./cmd
13+
14+
FROM scratch
15+
16+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
17+
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
18+
19+
COPY --from=builder /app/server /server
20+
21+
EXPOSE 8082
22+
23+
CMD ["/server"]

backend/email-service/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package main
2+
3+
func main() {
4+
5+
}

0 commit comments

Comments
 (0)