Fixed error access to inside the docker container.

Fixed when run docker exec -it $container_ID /bin/bash
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory"
This commit is contained in:
Vladyslav Tokarchuk 2018-06-25 19:47:04 +03:00 committed by GitHub
parent 8618e0cb58
commit 9131ea5aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ WORKDIR /go/src/github.com/filebrowser/filebrowser/cmd/filebrowser
RUN CGO_ENABLED=0 go build -a RUN CGO_ENABLED=0 go build -a
RUN mv filebrowser /go/bin/filebrowser RUN mv filebrowser /go/bin/filebrowser
FROM scratch FROM ubuntu
COPY --from=0 /go/bin/filebrowser /filebrowser COPY --from=0 /go/bin/filebrowser /filebrowser
VOLUME /tmp VOLUME /tmp