28 lines
586 B
Docker
28 lines
586 B
Docker
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 docker-compose docker
|
|
|
|
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
|
|
|
|
RUN groupadd -r -g 116 jenkins
|
|
|
|
RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins
|
|
|
|
RUN usermod -aG docker jenkins
|