Files
objectivefs-docker-volume/Dockerfile
Roman Vaníček ac3dfc956a
All checks were successful
continuous-integration/drone/push Build is passing
Collect logs from mount.objectivefs
2023-05-25 09:27:54 +02:00

19 lines
426 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
COPY --from=builder /usr/local/src/objectivefs-docker-volume/bin/objectivefs-docker-volume /
COPY bin/mount.objectivefs /sbin/
COPY config.json /
RUN mkdir -p /run/docker/plugins && \
chmod +x /sbin/mount.objectivefs