1
0
mirror of https://github.com/goharbor/harbor.git synced 2025-02-16 11:51:47 +01:00
harbor/tools/spectral/Dockerfile

9 lines
257 B
Docker
Raw Normal View History

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 && chmod +x /usr/bin/spectral
ENTRYPOINT ["/usr/bin/spectral"]
CMD ["--version"]