Skip to content

Commit

Permalink
Update yq version
Browse files Browse the repository at this point in the history
  • Loading branch information
aweakley committed Oct 15, 2024
1 parent 9296bf1 commit 1cb61f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ RUN apk update \
nginx \
py3-pip \
tini \
yq \
&& rm -rf /var/cache/apk/*

# Do NOT use dockerize 0.6.1 due to https://github.com/jwilder/dockerize/issues/125
ENV DOCKERIZE_VERSION=0.6.0
RUN wget -nv -O - "https://github.com/jwilder/dockerize/releases/download/v${DOCKERIZE_VERSION}/dockerize-linux-${DOCKERIZE_ARCH}-v${DOCKERIZE_VERSION}.tar.gz" | tar -xz -C /usr/local/bin/ -f -

RUN --mount=type=cache,id=nginx-proxy-redirect,target=/root/.cache/pip pip install --no-cache-dir yq

ENV PATH="/opt/nginx-proxy-redirect/bin:$PATH"

EXPOSE 80
Expand Down
2 changes: 1 addition & 1 deletion bin/nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ if [[ ! -f /opt/nginx-proxy-redirect/data/config.yml ]]; then
cp /opt/nginx-proxy-redirect/config.yml.example /opt/nginx-proxy-redirect/data/config.yml
fi

export CONFIG="$(yq . /opt/nginx-proxy-redirect/data/config.yml)"
export CONFIG="$(yq -oj . /opt/nginx-proxy-redirect/data/config.yml)"
dockerize -template /opt/nginx-proxy-redirect/etc/nginx.tmpl.conf:/opt/nginx-proxy-redirect/data/nginx.conf
exec nginx -c /opt/nginx-proxy-redirect/data/nginx.conf "$@"

0 comments on commit 1cb61f3

Please sign in to comment.