mirror of https://github.com/elisescu/tty-proxy/
use intermediate image to eval nginx.conf.tmpl at build time
parent
e3ce304a27
commit
ad72499d1f
@ -1,5 +1,13 @@
|
||||
FROM nginx
|
||||
FROM ruby as template
|
||||
|
||||
ADD "nginx.conf.tmpl" "nginx.yaml" "/build/"
|
||||
RUN gem install mustache \
|
||||
&& cd /build \
|
||||
&& mustache nginx.yaml nginx.conf.tmpl > nginx.conf
|
||||
|
||||
|
||||
FROM nginx:latest
|
||||
#RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y libnginx-mod-stream
|
||||
COPY --from=template /build/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends --no-install-suggests -y libnginx-mod-stream
|
||||
|
||||
|
Loading…
Reference in New Issue