compobot/Dockerfile

28 lines
604 B
Text
Raw Normal View History

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