nginx-with-tools

This commit is contained in:
Artur 2025-01-07 16:09:43 +01:00
parent 20abab8751
commit 8db26fc2de
2 changed files with 29 additions and 0 deletions

View File

@ -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);
}
}
}
}
}

View File

@ -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/*