mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Simplify Docker support
This commit is contained in:
parent
ec15262e27
commit
b7423896d1
3 changed files with 4 additions and 7 deletions
|
@ -25,4 +25,4 @@ RUN chown -R 1000:1000 /app
|
||||||
USER microblogpub
|
USER microblogpub
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["supervisord", "-n", "-c", "misc/docker-supervisord.conf"]
|
CMD ["./misc/docker_start.sh"]
|
||||||
|
|
|
@ -32,12 +32,6 @@ Update `data/profile.toml` and add this line:
|
||||||
trusted_hosts = ["*"]
|
trusted_hosts = ["*"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Build static assets.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
make update
|
|
||||||
```
|
|
||||||
|
|
||||||
Start the app with Docker Compose, it will listen on port 8000 by default.
|
Start the app with Docker Compose, it will listen on port 8000 by default.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
3
misc/docker_start.sh
Executable file
3
misc/docker_start.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
inv update
|
||||||
|
exec supervisord -n -c misc/docker-supervisord.conf
|
Loading…
Reference in a new issue