1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/luigi/Dockerfile

27 lines
538 B
Docker
Raw Normal View History

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 \
&& 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