1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
dockerfiles/luigi/Dockerfile
2017-05-24 15:26:35 +08:00

27 lines
523 B
Docker

#
# 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 \
&& pip3 install luigi \
&& 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