Curl limitation indocker 1.12.2 ubuntu?

Hi,

I’m trying to debug timhaak/plex repo and recently he add a feature to download plexpass version of the server.
anyway the system is run like this :
ENV PLEX_URL=“https://plex.tv/api/downloads/1.json
PLEX_PASS_URL=“https://plex.tv/api/downloads/1.json?channel=plexpass

RUN if [ "${PLEX_PASS}" = "true" ]; then PLEX_URL=${PLEX_PASS_URL}; fi && \
PLEX_JSON=$(curl --netrc-file credentials -s $PLEX_URL | jq -r '.computer.Linux.releases[] | select(.build=="linux-ubuntu-x86_64" and .distro=="ubuntu") | .') && \
PLEX_DOWNLOAD=$(echo $PLEX_JSON | jq -r '.url') && \
PLEX_CHECKSUM=$(echo $PLEX_JSON | jq -r '.checksum') && \
wget -O plex_server.deb $PLEX_DOWNLOAD && \
echo "$PLEX_CHECKSUM *plex_server.deb" | sha1sum -c - && \

I’ve modified it in

ENV PLEX_URL="https://plex.tv/api/downloads/1.json" \
    PLEX_PASS_URL="https://plex.tv/api/downloads/1.json?channel=plexpass"

    RUN if [ "${PLEX_PASS}" = "true" ]; then PLEX_URL=${PLEX_PASS_URL}; fi && \
    PLEX_JSON=$(curl --netrc-file credentials -s $PLEX_URL | jq -r '.computer.Linux.releases[] | select(.build=="linux-ubuntu-x86_64" and .distro=="ubuntu") | .') && \
    PLEX_DOWNLOAD=$(echo $PLEX_JSON | jq -r '.url') && \
    PLEX_CHECKSUM=$(echo $PLEX_JSON | jq -r '.checksum') && \
    wget -O plex_server.deb $PLEX_DOWNLOAD && \
    echo "$PLEX_CHECKSUM *plex_server.deb" | sha1sum -c - && \

but still don’t get the good file.

even if I do this:
ENV PLEX_URL=“https://plex.tv/api/downloads/1.json?channel=plexpass
PLEX_PASS_URL=“https://plex.tv/api/downloads/1.json?channel=plexpass

#RUN if [ "${PLEX_PASS}" = "true" ]; then PLEX_URL=${PLEX_PASS_URL}; fi && \
RUN PLEX_JSON=$(curl -u login:password -s $PLEX_URL | jq -r '.computer.Linux.releases[] | select(.build=="linux-ubuntu-x86_64" and .distro=="ubuntu") | .') && \
PLEX_DOWNLOAD=$(echo $PLEX_JSON | jq -r '.url') && \
PLEX_CHECKSUM=$(echo $PLEX_JSON | jq -r '.checksum') && \
wget -O plex_server.deb $PLEX_DOWNLOAD && \
echo "$PLEX_CHECKSUM *plex_server.deb" | sha1sum -c - && \

by replacing login by my login and password by my password, it doesn’t get the good file.

If I do it manually on a native system or even a ubuntu container it will succeed. So does curl have some kind of limitations in dockerfile? because the IF is not the problem here nor is the the credential file. And as I said, it works fine in just a terminal…

nobody then? nobody have any cknowledge about this problem?

up still nobody who have experienced that?