-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgwm.Dockerfile
39 lines (30 loc) · 1.2 KB
/
gwm.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
################################################################################
## using alpine image to build version and revision files
################################################################################
FROM alpine AS app_resource
WORKDIR /tmp
COPY ./.git /tmp/.git
COPY ./gateway-manager/conf/docker/setup_revision.sh /tmp/setup_revision.sh
RUN /tmp/setup_revision.sh
################################################################################
## using python image to build app
###############################################################################
FROM python:3.8-slim-buster
LABEL description="GWM > Kong+Keycloak installation tool" \
name="gateway-manager" \
author="eHealth Africa"
WORKDIR /code
ENTRYPOINT ["/code/entrypoint.sh"]
COPY ./gateway-manager /code
RUN apt-get update -qq && \
apt-get -qq \
--yes \
--allow-downgrades \
--allow-remove-essential \
--allow-change-held-packages \
install gcc git curl && \
pip install -q --upgrade pip && \
pip install -q -r /code/conf/pip/requirements.txt && \
mkdir -p /var/tmp
## copy application version and git revision
COPY --from=app_resource /tmp/resources/. /var/tmp/