forked from zgsm-ai/codebase-embedder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (20 loc) · 672 Bytes
/
Dockerfile
File metadata and controls
37 lines (20 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM golang:1.24.4 AS builder
LABEL stage=gobuilder
ENV GOPROXY https://goproxy.cn,direct
ENV GOSUMDB off
WORKDIR /build
COPY . .
RUN make build
# FROM alpine:latest
# FROM alpine:3.21 AS STANDARD
FROM debian:bookworm-slim AS STANDARD
# FROM golang:1.24.4 AS STANDARD
# RUN apk --no-cache add ca-certificates tzdata
# # RUN apk add --no-cache bash
# COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai
# ENV TZ Asia/Shanghai
WORKDIR /app
COPY --from=builder /build/bin/main /app/server
RUN chmod +x /app/server
CMD ["./server"]