mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat: basic volume plugin commands
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.24-alpine3.21 AS builder
|
||||
|
||||
WORKDIR /ironmount
|
||||
|
||||
COPY go.mod ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG TARGETOS=linux
|
||||
ARG TARGETARCH
|
||||
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
||||
go build -o /out/ironmount .
|
||||
|
||||
FROM alpine:3.22 AS runner
|
||||
WORKDIR /
|
||||
COPY --from=builder /out/ironmount /ironmount
|
||||
|
||||
ENTRYPOINT ["/ironmount"]
|
||||
Reference in New Issue
Block a user