|
@@ -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
|