mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Add Docker.json and update Dockerfile. See #157
This commit is contained in:
parent
9453e22559
commit
02c98905ae
10
Docker.json
Normal file
10
Docker.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"port": 80,
|
||||
"address": "",
|
||||
"database": "/etc/database.db",
|
||||
"scope": "/srv",
|
||||
"allowCommands": true,
|
||||
"allowEdit": true,
|
||||
"allowNew": true,
|
||||
"commands": []
|
||||
}
|
15
Dockerfile
15
Dockerfile
@ -1,9 +1,18 @@
|
||||
FROM golang:alpine
|
||||
|
||||
COPY . /go/src/github.com/hacdias/filemanager
|
||||
|
||||
WORKDIR /go/src/github.com/hacdias/filemanager
|
||||
RUN apk add --no-cache git
|
||||
RUN go get ./...
|
||||
|
||||
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
|
||||
RUN go build
|
||||
ENTRYPOINT ["/go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager"]
|
||||
CMD ["-h"]
|
||||
RUN go install
|
||||
|
||||
VOLUME /srv
|
||||
EXPOSE 80
|
||||
|
||||
COPY Docker.json /etc/config.json
|
||||
|
||||
ENTRYPOINT ["/go/bin/filemanager"]
|
||||
CMD ["--config", "/etc/config.json"]
|
||||
|
Loading…
Reference in New Issue
Block a user