Files
objectivefs-docker-volume/Dockerfile
Roman Vaníček bbb487b438
All checks were successful
continuous-integration/drone/push Build is passing
Source code .go not copied.
2023-05-25 00:15:03 +02:00

18 lines
384 B
Docker

FROM golang:1.20-bullseye AS builder
WORKDIR /usr/local/src/objectivefs-docker-volume
COPY go.* ./
COPY *.go ./
RUN go mod download
RUN mkdir bin/ && go build -o bin/ ./...
FROM debian:bullseye-slim
RUN mkdir -p /run/docker/plugins
COPY --from=builder /usr/local/src/objectivefs-docker-volume/bin/objectivefs-docker-volume /
COPY bin/mount.objectivefs /sbin/
COPY config.json /