compobot/Dockerfile
J. Elfring (x) 4bf3fb5dad First small refactoring :)
With these tings:
- Create db during runtime
- Better generation of psv
- Lower case symbol descriptions
- Some Readme fixes
- ...
2020-09-21 21:05:46 +02:00

27 lines
604 B
Docker

FROM alpine:latest
LABEL maintainer "J. Elfring <code@elfring.ms>"
LABEL org.opencontainers.image.source https://github.com/elfrinjo/compoBot
RUN apk --no-cache --update \
add ca-certificates \
coreutils \
bash \
curl \
sed \
sqlite \
&& mkdir /app \
&& mkdir /data
COPY . /app/
ENV database=/data/compobot.db3 \
minWait=43200 \
maxWait=86400 \
mtdVisibility=direct \
mtdApi=https://mastodon.example/api/v1/statuses \
mtdToken=INSERT-YOUR-BEARER-TOKEN
VOLUME /data
WORKDIR /app
CMD ["/app/compoBot.sh"]