-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.06 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
FROM quay.io/fedora/fedora:36-x86_64
LABEL name="webhook-proxy" \
maintainer="[email protected]" \
vendor="Red Hat QE Section 1" \
version="1.1" \
release="1" \
summary="webhook proxy server" \
description="A proxy server to fetch AWS SQS message repeatly" \
io.k8s.description="A proxy server to fetch AWS SQS message repeatly" \
io.k8s.display-name="webhook proxy" \
io.openshift.tags="webhook-proxy,webhook,proxy"
ENV PROXY_ROOT=/home/proxy
USER root
RUN dnf -y update && \
dnf -y install \
net-tools \
procps-ng \
curl \
gcc \
python3 \
python3-devel \
python3-pip && \
dnf clean all && \
pip install boto3 requests && \
mkdir -p ${PROXY_ROOT} && \
chmod -R g=u ${PROXY_ROOT} /etc/passwd /etc/group && \
chgrp -R 0 ${PROXY_ROOT}
COPY proxy.py entrypoint.sh /home/proxy/
RUN chmod 755 ${PROXY_ROOT}/{proxy.py,entrypoint.sh}
WORKDIR ${PROXY_ROOT}
USER 1001
ENTRYPOINT ["/home/proxy/entrypoint.sh"]
CMD ["python3", "-u","/home/proxy/proxy.py"]