Fix: linux (w/ selinux) build (#2004)

* add: check for selinux for vol mount

* update: install packages first

build time not increased if script changes

* update: selinux check
This commit is contained in:
Cory Latschkowski
2024-04-14 18:51:17 +10:00
committed by GitHub
parent a4b9c3049b
commit c7baa8bc34
2 changed files with 10 additions and 6 deletions
+7 -4
View File
@@ -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