Skip to content

Commit 7d9fcbb

Browse files
committed
Add Dockerfile for normal usage
1 parent c734a3b commit 7d9fcbb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM docker.io/library/golang:1.23.3-alpine AS builder
2+
RUN mkdir /src
3+
WORKDIR /src
4+
5+
COPY go.mod go.sum* ./
6+
RUN go mod download
7+
COPY . /src/
8+
ENV CGO_ENABLED=0
9+
10+
RUN go build -o ./bin/server
11+
12+
FROM alpine AS runtime
13+
LABEL org.opencontainers.image.source="https://github.com/database-playground/sqlrunner-v2"
14+
15+
COPY --from=builder /src/bin/server /bin/server
16+
CMD ["/bin/server"]

zbpack.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignore_dockerfile": true
3+
}

0 commit comments

Comments
 (0)