NOT DONE YET - allow containerization
a bunch was restructured to make it amenable to docker. it works fine, except when writing to the db. trying to log in (thus creating a session) will have Lapis throw "attempt to write a readonly database"
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
# 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 :(
|
||||
#
|
||||
FROM openresty/openresty:alpine-fat
|
||||
|
||||
RUN apk add --no-cache git make gcc g++ musl-dev libffi-dev openssl-dev sqlite-dev libsodium libsodium-dev imagemagick-dev openssl
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN eval "$(luarocks --lua-version=5.1 path)"
|
||||
RUN luarocks --lua-version=5.1 build --only-deps
|
||||
EXPOSE 8080
|
||||
RUN chmod +x /app/start.sh
|
||||
ENTRYPOINT ["/app/start.sh", "production"]
|
Reference in New Issue
Block a user