-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·32 lines (24 loc) · 960 Bytes
/
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
# Building on top of 3.7 image as resilient circuits is just a python app
FROM python:3.7-alpine
# Label the maintainers / authors
LABEL authors="craig.roberts@uk.ibm.com,ryan.gordon1@ibm.com,simon.bradish@ibm.com"
# Create the app.config during build for customize command
ARG TMP_APP_CONFIG
RUN echo "$TMP_APP_CONFIG" > /tmp/app.config
# Install bash
RUN apk update && apk add bash g++ gcc libxslt-dev
# Create the app directory
WORKDIR /app
# Copy files needed by install.sh
COPY integration_list.txt /tmp
# COPY /assets/integrations /tmp/integrations
COPY /assets/requirements.txt /tmp
COPY /assets/install.sh /tmp
COPY /assets/simple-entrypoint.sh /tmp
# Set environment variables for circuits and logging
ENV APP_CONFIG_FILE /etc/circuits/app.config
ENV APP_LOG_DIR /app
# Install the main app content
RUN bash /tmp/install.sh && apk del .build-deps
# Setup the entrypoint for container start
ENTRYPOINT [ "sh", "/tmp/simple-entrypoint.sh" ]