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 \
|
2020-09-21 21:05:46 +02:00
|
|
|
add ca-certificates \
|
|
|
|
coreutils \
|
|
|
|
bash \
|
2020-09-18 11:17:49 +02:00
|
|
|
curl \
|
2020-09-21 21:05:46 +02:00
|
|
|
sed \
|
2020-09-18 11:17:49 +02:00
|
|
|
sqlite \
|
2020-09-21 21:05:46 +02:00
|
|
|
&& mkdir /app \
|
|
|
|
&& mkdir /data
|
2020-09-18 11:17:49 +02:00
|
|
|
|
2020-09-21 21:05:46 +02:00
|
|
|
COPY . /app/
|
2020-09-18 11:17:49 +02:00
|
|
|
|
2020-09-21 21:05:46 +02:00
|
|
|
ENV database=/data/compobot.db3 \
|
2020-09-18 11:17:49 +02:00
|
|
|
minWait=43200 \
|
|
|
|
maxWait=86400 \
|
2020-09-21 21:05:46 +02:00
|
|
|
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"]
|