kickstart
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
FROM golang:1.25.2-alpine3.22 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod ./
|
||||
COPY server/ ./server/
|
||||
|
||||
RUN go mod download
|
||||
RUN go build -o /app/service_a ./server/main.go
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/service_a /app/service_a
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/app/service_a"]
|
||||
Reference in New Issue
Block a user