forked from Lotto24/aws-ecr-http-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 733 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM openresty/openresty:1.21.4.1-0-alpine
USER root
RUN apk add -v --no-cache bind-tools python3 py-pip py3-urllib3 py3-colorama supervisor
RUN mkdir /cache
RUN mkdir /etc/crontab
RUN addgroup -g 110 nginx && adduser -u 110 -D -S -h /cache -s /sbin/nologin -G nginx nginx
RUN pip install --upgrade pip awscli==1.34.21
COPY scripts/startup.sh /
COPY scripts/renew_token.sh /
COPY config/supervisord/programs.ini /etc/supervisor.d/programs.ini
COPY config/nginx/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
COPY config/nginx/ssl.conf /usr/local/openresty/nginx/conf/ssl.conf
ENV PORT 5000
RUN chmod a+x /startup.sh /renew_token.sh
ENTRYPOINT ["/startup.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]