2022-10-19 14:43:50 +00:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends make ca-certificates openssl gcc build-essential musl-dev git
|
|
|
|
|
|
|
|
COPY files/go1.18.6.linux-amd64.tar.gz go1.18.6.linux-amd64.tar.gz
|
|
|
|
|
|
|
|
RUN mkdir /tmp/go
|
|
|
|
|
|
|
|
WORKDIR /tmp/go
|
|
|
|
|
|
|
|
ENV GOPATH /tmp/go
|
|
|
|
|
|
|
|
RUN chmod ugo+rwx /tmp/go
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.6.linux-amd64.tar.gz
|
|
|
|
|
|
|
|
ENV PATH $PATH:/usr/local/go/bin
|
|
|
|
|
2022-12-01 21:01:29 +00:00
|
|
|
RUN groupadd -r -g 116 jenkins
|
|
|
|
|
|
|
|
RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins
|