2017-05-24 09:26:14 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for luigi
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
|
|
|
|
|
|
|
ENV LUIGI_HOME_DIR=/opt/luigi
|
|
|
|
ENV LUIGI_CONFIG_PATH=/opt/luigi/etc/luigi.cfg
|
|
|
|
ENV LUIGI_LOG_DIR=/opt/luigi/log
|
|
|
|
ENV LUIGI_STATE_PATH=/opt/luigi/var/state.pickle
|
|
|
|
|
|
|
|
WORKDIR $LUIGI_HOME_DIR
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache python3 \
|
2021-07-01 21:32:49 +02:00
|
|
|
&& pip3 install --no-cache-dir luigi \
|
2017-05-24 09:26:14 +02:00
|
|
|
&& mkdir -p etc log run var \
|
|
|
|
&& touch $LUIGI_CONFIG_PATH
|
|
|
|
|
|
|
|
VOLUME $LUIGI_HOME_DIR
|
|
|
|
|
|
|
|
EXPOSE 8082
|
|
|
|
|
|
|
|
CMD luigid --logdir $LUIGI_LOG_DIR \
|
|
|
|
--state-path $LUIGI_STATE_PATH
|