mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 01:32:25 -05:00
[chore/docs] Add /gotosocial/.cache to Docker container, document GTS_WAZERO_COMPILATION_CACHE (#3425)
* [chore/docs] Add `/gotosocial/.cache` to Docker container, document `GTS_WAZERO_COMPILATION_CACHE` * update wazero artifact size guesstimate
This commit is contained in:
parent
3f68e13dc7
commit
096767bb3b
5 changed files with 71 additions and 3 deletions
|
|
@ -39,9 +39,10 @@ USER 1000:1000
|
|||
#
|
||||
# See https://docs.docker.com/engine/reference/builder/#workdir
|
||||
#
|
||||
# First make sure storage exists + is owned by 1000:1000, then go back
|
||||
# to just /gotosocial, where we'll run from
|
||||
# First make sure storage + cache exist and are owned by 1000:1000,
|
||||
# then go back to just /gotosocial, where we'll actually run from.
|
||||
WORKDIR "/gotosocial/storage"
|
||||
WORKDIR "/gotosocial/.cache"
|
||||
WORKDIR "/gotosocial"
|
||||
|
||||
# copy the dist binary created by goreleaser or build.sh
|
||||
|
|
@ -51,5 +52,5 @@ COPY --chown=1000:1000 gotosocial /gotosocial/gotosocial
|
|||
COPY --chown=1000:1000 --from=bundler web /gotosocial/web
|
||||
COPY --chown=1000:1000 --from=swagger /go/src/github.com/superseriousbusiness/gotosocial/swagger.yaml web/assets/swagger.yaml
|
||||
|
||||
VOLUME [ "/gotosocial/storage" ]
|
||||
VOLUME [ "/gotosocial/storage", "/gotosocial/.cache" ]
|
||||
ENTRYPOINT [ "/gotosocial/gotosocial", "server", "start" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue