-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dockerfile
29 lines (23 loc) · 816 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
ARG NGINX_VERSION=latest
FROM nginx:$NGINX_VERSION
ENV NX_PROXY_BUFFER_NUMBER=16
ENV NX_PROXY_BUFFER_SIZE=4k
ENV PROXY_HEADER_HOST=\$host
# All this just for the awscli
RUN apt-get update && \
apt-get install -y \
python3 \
python3-pip \
python3-setuptools \
curl \
jq \
&& python3 -m pip --no-cache-dir install --break-system-packages --upgrade pip \
&& python3 -m pip --no-cache-dir install --break-system-packages --upgrade awscli \
&& apt-get clean
# Copy our launch and configuration files
COPY ./scripts /opt/scripts
COPY conf/default.conf /default.conf
# Remove built in default.conf- it gets replaced by launch_proxy.sh
RUN rm -f /etc/nginx/conf.d/default.conf
# Upstream nginx uses CMD instead of ENTRYPOINT so we do too.
CMD ["bash", "/opt/scripts/entrypoint.sh"]