mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-09 16:09:07 +00:00
update: install packages first
build time not increased if script changes
This commit is contained in:
parent
bf2d4377e1
commit
82df773be3
@ -1,12 +1,15 @@
|
||||
FROM golang:1.22.1
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y npm && \
|
||||
npm install -g npx cspell@latest
|
||||
|
||||
COPY scripts/devtools.sh /opt/devtools.sh
|
||||
|
||||
RUN set -e -x \
|
||||
&& /opt/devtools.sh
|
||||
ENV PATH=/go/bin:$PATH
|
||||
RUN set -e -x && \
|
||||
/opt/devtools.sh
|
||||
|
||||
RUN apt-get update && apt-get install -y npm && npm install -g npx cspell@latest
|
||||
ENV PATH=/go/bin:$PATH
|
||||
|
||||
ENV CGO_ENABLED 0
|
||||
ENV GOPATH /go:/yq
|
||||
|
||||
Loading…
Reference in New Issue
Block a user