Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 10b0868

Browse files
hacdiasgitbook-bot
authored andcommitted
GitBook: [master] 2 pages modified
1 parent bd3fa25 commit 10b0868

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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

contributing/builds.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: '[NEEDS CLEANUP]'
33
---
44

5-
# Builds
5+
# Build
66

77
## Get the source code
88

@@ -65,7 +65,7 @@ cd ../cli
6565
go 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
7171
cd ../cli
@@ -81,7 +81,9 @@ cd ..
8181
cp 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
9597
EXPOSE 80
9698
9799
COPY filebrowser /filebrowser
98-
COPY Docker.json /config.json
99100
100-
ENTRYPOINT ["/filebrowser", "--config", "/config.json"]
101+
ENTRYPOINT ["/filebrowser", "--port", "80"]
101102
```
102103

103104
So, 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

109110
You can then try it:

0 commit comments

Comments
 (0)