compobot/Dockerfile

28 lines
608 B
Docker
Raw Normal View History

2020-09-18 11:17:49 +02:00
FROM alpine:latest
LABEL maintainer "J. Elfring <code@elfring.ms>"
LABEL org.opencontainers.image.source https://git.elfring.ms/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"]