15 lines
239 B
Docker
15 lines
239 B
Docker
FROM dockermirror:5000/dpedu/gobuild-1.22 as build
|
|
|
|
ADD . /code
|
|
|
|
RUN cd /code && \
|
|
go mod download -x && \
|
|
go build -o ./ ./cmd/...
|
|
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=build /code/syncthing-csi /syncthing-csi
|
|
|
|
ENTRYPOINT ["/syncthing-csi"]
|