-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (34 loc) · 1.82 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Use Docker alpine base image
# See [GitHub](https://github.com/alpinelinux/docker-alpine)
#
# Digital Poet
# Aran
#
FROM alpine:3.10.3
# Domain labels ========================================================================================================
LABEL info.digitalpoet.docker-supervisord.maintainer="Aran Moncusi Ramirez <[email protected]>" \
info.digitalpoet.docker-supervisord.version="1.0.0" \
info.digitalpoet.docker-supervisord.description="Base image to build applications using Superviusord as entrypoint"
# Argument =============================================================================================================
# Environment ==========================================================================================================
ENV SUPERVISOR_VERSION 3.3.1
ENV PYTHON_DOCKER_VERSION 4.1.0
ENV KILL_SUPERD_VERSION 1.0
# Supervisord env variables
ENV LOGLEVEL warn
ENV SD_LOG_MAX_SYZE 10MB
ENV SD_LOG_BKP 10
ENV KILL_SUPERD_ARGS=""
# Install Dependencies =================================================================================================
# Install dependencies
RUN apk add --no-cache py-pip \
&& pip install docker==$PYTHON_DOCKER_VERSION \
&& pip install supervisor==$SUPERVISOR_VERSION \
&& wget https://github.com/amoncusir/kill_supervisord/releases/download/$KILL_SUPERD_VERSION/kill_superd.py -O /usr/local/bin/kill_superd.py \
&& chmod +x /usr/local/bin/* \
&& mkdir -p /var/log/supervisord
# Add Configuration Files ==============================================================================================
# Default configuration
COPY ./supervisord.conf /etc/supervisord.conf
# Add Entrypoint =======================================================================================================
ENTRYPOINT exec supervisord -c /etc/supervisord.conf