forked from Lotto24/aws-ecr-http-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 836 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
FROM openresty/openresty:1.19.9.1-12-alpine
USER root
RUN apk add -v --no-cache bind-tools python3 py-pip py3-urllib3 py3-colorama supervisor \
&& mkdir /cache \
&& addgroup -g 110 nginx \
&& adduser -u 110 -D -S -h /cache -s /sbin/nologin -G nginx nginx \
&& pip install --upgrade pip awscli==1.11.183 \
&& apk -v --purge del py-pip
COPY files/startup.sh files/renew_token.sh files/health-check.sh /
COPY files/ecr.ini /etc/supervisor.d/ecr.ini
COPY files/root /etc/crontabs/root
COPY files/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
COPY files/ssl.conf /usr/local/openresty/nginx/conf/ssl.conf
ENV PORT 5000
RUN chmod a+x /startup.sh /renew_token.sh
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD /health-check.sh
ENTRYPOINT ["/startup.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]