This repository was archived by the owner on Jun 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 2121* [ Authentication Provider] ( contributing/authentication-provider.md )
2222* [ Translations] ( contributing/translations.md )
2323* [ CI and Releases] ( contributing/ci-and-releases.md )
24- * [ Builds ] ( contributing/builds.md )
24+ * [ Build ] ( contributing/builds.md )
2525* [ Development] ( contributing/development.md )
2626* [ Code of Conduct] ( contributing/code-of-conduct.md )
2727
Original file line number Diff line number Diff line change 22description : ' [NEEDS CLEANUP]'
33---
44
5- # Builds
5+ # Build
66
77## Get the source code
88
@@ -65,7 +65,7 @@ cd ../cli
6565go get -v ./...
6666```
6767
68- Last, the backend can be either run or built from subdir ` cli ` as usual:
68+ Last, the backend can be either run or built from sub directory ` cli ` as usual:
6969
7070``` bash
7171cd ../cli
8181cp cli/filebrowser ./
8282```
8383
84- > Note: ` CGO_ENABLED=0 ` is used so that a static binary is built. See [ golang.org/cmd/cgo/] ( https://golang.org/cmd/cgo/ ) .
84+ {% hint style="info" %}
85+ ` CGO_ENABLED=0 ` is used so that a static binary is built. See [ golang.org/cmd/cgo] ( https://golang.org/cmd/cgo/ ) .
86+ {% endhint %}
8587
8688## Build a Docker image
8789
@@ -95,15 +97,14 @@ VOLUME /srv
9597EXPOSE 80
9698
9799COPY filebrowser /filebrowser
98- COPY Docker.json /config.json
99100
100- ENTRYPOINT ["/filebrowser", "--config ", "/config.json "]
101+ ENTRYPOINT ["/filebrowser", "--port ", "80 "]
101102```
102103
103104So, put the built binary and a ` config.json ` in the same dir as the [ dockerfile] ( https://docs.docker.com/engine/reference/builder/ ) shown above and build it:
104105
105106``` bash
106- docker build -t filebrowser/filebrowser .
107+ docker build -t filebrowser/filebrowser
107108```
108109
109110You can then try it:
You can’t perform that action at this time.
0 commit comments