feat(docker): do not run container as root #6
|
@ -1,14 +1,11 @@
|
||||||
FROM reg.cadoles.com/dh/library/golang:1.17 AS build
|
FROM reg.cadoles.com/dh/library/golang:1.22-alpine AS build
|
||||||
|
|
||||||
ARG HTTP_PROXY=
|
ARG HTTP_PROXY=
|
||||||
ARG HTTPS_PROXY=
|
ARG HTTPS_PROXY=
|
||||||
ARG http_proxy=
|
ARG http_proxy=
|
||||||
ARG https_proxy=
|
ARG https_proxy=
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y build-essential git bash curl python2
|
RUN apk update && apk add --no-cache build-base git bash curl python3 nodejs npm
|
||||||
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - \
|
|
||||||
&& apt-get install -y nodejs
|
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
|
|
||||||
|
@ -16,7 +13,7 @@ WORKDIR /src
|
||||||
|
|
||||||
RUN cp -f misc/docker/config-patch.yml misc/release/config-patch.yml
|
RUN cp -f misc/docker/config-patch.yml misc/release/config-patch.yml
|
||||||
|
|
||||||
RUN go get github.com/krishicks/yaml-patch/cmd/yaml-patch
|
RUN go install github.com/krishicks/yaml-patch/cmd/yaml-patch@v0.0.10
|
||||||
|
|
||||||
RUN npm install \
|
RUN npm install \
|
||||||
&& make vendor \
|
&& make vendor \
|
||||||
|
|
Loading…
Reference in New Issue