1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
FROM debian:jessie
MAINTAINER Aurelio Jargas <verde@aurelio.net>
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y bc curl lynx links unzip && \
rm -rf /var/lib/apt/lists/*
# Using dumb-init to catch user signals https://github.com/funcoeszz/funcoeszz/issues/374
RUN curl -fsSL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 > /dumb-init && \
chmod +x /dumb-init
ENV PATH=/app:$PATH \
ZZPATH=/app/funcoeszz \
ZZDIR=/app/zz \
ZZTMPDIR=/tmp \
LC_ALL=C.UTF-8 \
TERM=xterm \
PAGER=more
# User may want to preserve the functions cache
VOLUME /tmp
COPY funcoeszz /app/
COPY zz/ /app/zz/
WORKDIR /app
ENTRYPOINT ["/dumb-init", "--", "bash", "funcoeszz"]
CMD ["--help"]
|