add Dockerfile and .dockerignore

This commit is contained in:
Sven Fischer 2021-05-02 21:47:57 +02:00
parent 9ae33644e5
commit cc8d084e17
2 changed files with 15 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
Dockerfile

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM python:3.9
LABEL maintainer="Strubbl-dockerfile@linux4tw.de"
ENV DATA_DIR /data
COPY . feed2toot
RUN \
mkdir $DATA_DIR \
&& cd feed2toot \
&& python setup.py install
VOLUME $DATA_DIR
WORKDIR $DATA_DIR
CMD ["feed2toot", "-c", "./feed2toot.ini"]