Add Docker.json and update Dockerfile. See #157
parent
9453e22559
commit
02c98905ae
|
@ -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
|
FROM golang:alpine
|
||||||
|
|
||||||
COPY . /go/src/github.com/hacdias/filemanager
|
COPY . /go/src/github.com/hacdias/filemanager
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/hacdias/filemanager
|
WORKDIR /go/src/github.com/hacdias/filemanager
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
RUN go get ./...
|
RUN go get ./...
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
|
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
|
||||||
RUN go build
|
RUN go install
|
||||||
ENTRYPOINT ["/go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager"]
|
|
||||||
CMD ["-h"]
|
VOLUME /srv
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
COPY Docker.json /etc/config.json
|
||||||
|
|
||||||
|
ENTRYPOINT ["/go/bin/filemanager"]
|
||||||
|
CMD ["--config", "/etc/config.json"]
|
||||||
|
|
Loading…
Reference in New Issue