mirror of
https://github.com/InsanusMokrassar/JenkinsDocker.git
synced 2024-11-23 03:08:43 +00:00
Update Dockerfile
This commit is contained in:
parent
27607e5d2d
commit
0b351e121d
12
Dockerfile
12
Dockerfile
@ -1,17 +1,19 @@
|
|||||||
FROM debian:stretch
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
LABEL maintainer="ovsyannikov.alexey95@gmail.com"
|
LABEL maintainer="ovsyannikov.alexey95@gmail.com"
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
ENV TZ=Etc/GMT
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
RUN apt update && apt -y install wget gnupg2 openjdk-8-jdk zip unzip curl sudo git software-properties-common pass
|
RUN apt update && apt -y install wget gnupg2 openjdk-8-jdk zip unzip curl sudo git software-properties-common pass
|
||||||
|
|
||||||
RUN mkdir -p /var/jenkins_home/jenkins && cd /var/jenkins_home/ &&\
|
RUN mkdir -p /var/jenkins_home/jenkins && cd /var/jenkins_home/ &&\
|
||||||
wget http://mirrors.jenkins.io/war-stable/2.249.2/jenkins.war &&\
|
useradd -s /bin/bash -G sudo -d /var/jenkins_home -u 1000 jenkins &&\
|
||||||
chown 1000:1000 jenkins.war
|
chown -R jenkins:jenkins /var/jenkins_home &&\
|
||||||
|
|
||||||
RUN useradd -s /bin/bash -G sudo -d /var/jenkins_home -u 1000 jenkins && chown -R jenkins:jenkins /var/jenkins_home &&\
|
|
||||||
chmod 777 /tmp
|
chmod 777 /tmp
|
||||||
|
RUN wget http://mirrors.jenkins.io/war-stable/2.249.2/jenkins.war &&\
|
||||||
|
chown 1000:1000 jenkins.war && mv jenkins.war /var/jenkins_home/
|
||||||
|
|
||||||
VOLUME /var/jenkins_home/jenkins
|
VOLUME /var/jenkins_home/jenkins
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user