nginx-with-tools
This commit is contained in:
parent
20abab8751
commit
8db26fc2de
|
|
@ -0,0 +1,14 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('create ginx-with-tools-docker') {
|
||||||
|
steps {
|
||||||
|
script{
|
||||||
|
def nxinx_build ="docker build --build-arg NGINX_IMAGE=${NGINX_IMAGE} --file nginx-with-tools-docker.dockerfile -t nginx-with-tools ."
|
||||||
|
sh(nxinx_build);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# docker build --file 1.jenkins-with-docker-Dockerfile -t jenkins-with-docker .
|
||||||
|
|
||||||
|
ARG NGINX_IMAGE
|
||||||
|
|
||||||
|
FROM ${NGINX_IMAGE} as nginx-with-tools
|
||||||
|
MAINTAINER kusartur@wp.pl
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV TZ Europe/Warsaw
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
apache2-utils \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
Loading…
Reference in New Issue