From 59fe789726824104e1d8a7ac7ae56579bee59772 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 27 Oct 2024 18:17:22 -0500 Subject: [PATCH] fix: return to alpine --- Dockerfile | 4 +--- Jenkinsfile | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f25b393..77d8580 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ # Start with an Alpine base image -FROM debian:latest - -RUN apt-get install -y ca-certificates +FROM alpine:3.20 # Create a directory for our application WORKDIR /app diff --git a/Jenkinsfile b/Jenkinsfile index 1a60c1d..c4faa91 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,13 @@ pipeline { agent any stages { + stage('Build templ files') { + sh 'docker run -v `pwd`:/app -w=/app ghcr.io/a-h/templ:latest generate' + } stage('Build go binary') { agent { docker { - image 'golang:latest' + image 'golang:1.22-alpine3.20' reuseNode true } }