forked from Ivasoft/objectivefs-docker-volume
All checks were successful
continuous-integration/drone/push Build is passing
20 lines
515 B
Docker
20 lines
515 B
Docker
FROM golang:1.21-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 apt-get update && apt-get install -y fuse netcat && rm -rf /var/lib/apt/lists/* && \
|
|
mkdir -p /run/docker/plugins && \
|
|
chmod +x /sbin/mount.objectivefs
|