Nginx: added OpenSSL for local development (#1527)

* feature(nginx): add OpenSSL
This commit is contained in:
Vladyslav Shchepotin
2018-11-13 14:44:51 +02:00
committed by Shao Yu-Lung (Allen)
parent 1dac382827
commit 7219b3543a
9 changed files with 38 additions and 1 deletions

View File

@ -14,6 +14,7 @@ RUN if [ ${CHANGE_SOURCE} = true ]; then \
RUN apk update \
&& apk upgrade \
&& apk add --no-cache openssl \
&& apk add --no-cache bash \
&& adduser -D -H -u 1000 -s /bin/bash www-data
@ -24,6 +25,7 @@ ARG PHP_UPSTREAM_PORT=9000
RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf \
&& rm /etc/nginx/conf.d/default.conf
CMD ["nginx"]
ADD ./startup.sh /opt/startup.sh
CMD ["/bin/bash", "/opt/startup.sh"]
EXPOSE 80 443