finalize docker setup

now fully works via docker \o/
This commit is contained in:
Lera Elvoé 2025-05-23 13:14:51 +03:00
parent 4fa80aa8c7
commit 7f17d4c29e
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
2 changed files with 2 additions and 5 deletions

View File

@ -1,12 +1,8 @@
# HOW TO:
#
# docker build -t porom:latest .
#
# Then run the container:
#
# docker compose up
#
# NOTE: not working yet. i get an error that the db is read-only :(
# it exposes the data/ and secrets/ volumes in app root
#
FROM openresty/openresty:alpine-fat

View File

@ -15,6 +15,7 @@ first_launch() {
touch "secrets/.touched.$LAPIS_ENVIRONMENT"
mkdir -p data/db
luajit schema.lua
chmod -R a+rw data
lapis migrate
luajit create_default_accounts.lua
}