From f6db4212fd9fe26880e599ec80e7bb7b2eb76b27 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Thu, 27 Mar 2025 12:16:32 +0100 Subject: [PATCH] change: to new build environment --- .dockerignore | 4 ++-- Dockerfile | 7 ++----- Jenkinsfile | 28 ---------------------------- 3 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 Jenkinsfile diff --git a/.dockerignore b/.dockerignore index 7dab203..ade01cc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ .forgejo -compose.yml -*.dockerfile +*compose.yml +Dockerfile .git* Jenkinsfile LICENSE diff --git a/Dockerfile b/Dockerfile index 96fc7ff..951996a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,10 @@ ENV DEBUG_MODE=False COPY . . -RUN apk add --no-cache git python3 -RUN python3 -m venv /opt/.venv -RUN /opt/.venv/bin/pip install --no-cache-dir -r requirements.txt -RUN apk del git +RUN apk add --no-cache python3 py3-flask py3-waitress EXPOSE 8080 HEALTHCHECK --interval=5m CMD wget --delete-after http://localhost:8080 -CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ] +CMD [ "waitress-serve", "--listen=0.0.0.0:8080", "app:app" ] diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 97754e7..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,28 +0,0 @@ -pipeline { - agent { dockerfile true } - stages { - stage('Pull Alpine Image') { - steps { - script { - // Pull the Alpine Docker image - - dockerImage = docker.image('alpine:latest') - - dockerImage.pull() - } - } - } - stage('Build') { - steps { - docker.withRegistry('https://git.adrianux.net/ahoemann/') { - - /* Build the container image */ - def dockerImage = docker.build("adrianux:${env.BUILD_ID}") - - /* Push the container to the custom Registry */ - dockerImage.push() - } - } - } - } -} \ No newline at end of file