fix(seacogs): use env instead of run to set env vars
Some checks failed
Docker Build / Build (push) Failing after 7s

This commit is contained in:
Seaswimmer 2024-01-07 06:39:24 -05:00
parent 9b6d1b95d2
commit 270ca1c500
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -17,7 +17,7 @@ RUN apt-get install -y \
RUN apt-get install -y ca-certificates curl gnupg RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN export NODE_MAJOR=12 ENV NODE_MAJOR=12
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x focal main" | sudo tee /etc/apt/sources.list.d/nodesource.list > /dev/null RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x focal main" | sudo tee /etc/apt/sources.list.d/nodesource.list > /dev/null
RUN apt-get update && apt-get install -y nodejs RUN apt-get update && apt-get install -y nodejs