mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
c6bd7b2ec2
Signed-off-by: He Weiwei <hweiwei@vmware.com>
9 lines
257 B
Docker
9 lines
257 B
Docker
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"]
|