Docker image for sending reminders
This commit is contained in:
parent
b3417ce55a
commit
a84f7c331a
3 changed files with 33 additions and 0 deletions
17
Dockerfile-reminders
Normal file
17
Dockerfile-reminders
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM rust:1-bullseye AS toot
|
||||
|
||||
COPY toot /toot
|
||||
RUN cd /toot && cargo build
|
||||
|
||||
|
||||
FROM ruby:3-bullseye
|
||||
COPY --from=toot /toot/target/debug/toot /usr/local/bin/
|
||||
RUN gem install t
|
||||
COPY scripts/send-reminder-tweets.sh /usr/local/bin/
|
||||
VOLUME /data
|
||||
ENV WEBSITE_DIR=/website
|
||||
RUN useradd -M -d /data reminders && chown reminders:reminders /data
|
||||
USER reminders:reminders
|
||||
WORKDIR /data
|
||||
CMD /usr/local/bin/send-reminder-tweets.sh
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue