Browse Source

added Dockerfile and docker-compose.yaml sample

master
Sebastian 1 year ago
parent
commit
01d0bb0c39
Signed by: imo GPG Key ID: AFA10CBFE4391C0C
  1. 24
      Dockerfile
  2. 13
      docker-compose.yaml.sample

24
Dockerfile

@ -0,0 +1,24 @@
FROM imolein/luarocks:5.4 as build
LABEL maintainer = "Sebastian Huebner <sh@kokolor.es>"
RUN luarocks install http \
&& luarocks install mimetypes \
&& luarocks install luafilesystem
FROM imolein/lua:5.4
ENV wdir /opt/wmia
WORKDIR ${wdir}
COPY --from=build /usr/local/share/lua/5.4 /usr/local/share/lua/5.4
COPY --from=build /usr/local/lib/lua/5.4 /usr/local/lib/lua/5.4
COPY html html/
COPY wmia.lua ./
RUN adduser -h ${wdir} -D wmia \
&& chown -R wmia:wmia ${wdir}
USER wmia
CMD ["lua", "wmia.lua"]

13
docker-compose.yaml.sample

@ -0,0 +1,13 @@
version: '3'
services:
wmia:
image: imolein/wmia:0.2
ports:
- 9090:9090
restart: always
environment:
- WMIA_HOST=0.0.0.0
- WMIA_PORT=9090
- WMIA_HTML_ROOT=./html
- WMIA_DOMAIN=example.com
Loading…
Cancel
Save