mirror of
https://github.com/hexolan/panels.git
synced 2026-03-26 12:40:21 +00:00
init panel-service
This commit is contained in:
17
services/panel-service/Dockerfile
Normal file
17
services/panel-service/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.20 AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Install required modules
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# Build the service
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/panel-service ./cmd/panel-service
|
||||
|
||||
# Runtime environment (for minifying image size)
|
||||
FROM gcr.io/distroless/static-debian12
|
||||
|
||||
COPY --from=build /bin/panel-service .
|
||||
EXPOSE 9090
|
||||
CMD ["./panel-service"]
|
||||
Reference in New Issue
Block a user