Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
Signed-off-by: Vadim Bauer <vb@container-registry.com>
  • Loading branch information
Vad1mo committed Jun 29, 2024
1 parent 0c1494b commit 1ace7ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/spectral/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ ARG GOLANG
FROM ${GOLANG}

ARG SPECTRAL_VERSION
RUN curl -fsSL -o /usr/bin/spectral https://github.com/stoplightio/spectral/releases/download/$SPECTRAL_VERSION/spectral-linux-$(dpkg --print-architecture) && chmod +x /usr/bin/spectral
RUN case "$(dpkg --print-architecture)" in \
amd64) ARCH="x86" ;; \
arm64) ARCH="arm64" ;; \
*) echo "Unsupported architecture" && exit 1 ;; \
esac && \
curl -fsSL -o /usr/bin/spectral https://github.com/stoplightio/spectral/releases/download/$SPECTRAL_VERSION/spectral-linux-$ARCH && chmod +x /usr/bin/spectral

ENTRYPOINT ["/usr/bin/spectral"]
CMD ["--version"]

0 comments on commit 1ace7ed

Please sign in to comment.