Update Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-04-29 19:48:10 +10:00
parent eccd258046
commit 45c3b97b87

View File

@@ -1,4 +1,4 @@
FROM golang:1.22.4-alpine3.20 as build
FROM golang:1.24.2-alpine3.21 as build
WORKDIR /src
@@ -15,12 +15,12 @@ ENV CGO_LDFLAGS "-static -w -s"
RUN go build -tags osusergo,netgo -o /application cmd/export-xlsx-server/main.go;
FROM golang:1.22.4-alpine3.20 as build2
FROM golang:1.24.2-alpine3.21 as build2
WORKDIR /src
ENV CGO_LDFLAGS "-static -w -s"
ENV J2E_VERSION "v0.1.8"
ENV J2E_VERSION "v0.1.9"
RUN wget https://git.coadcorp.com/nathan/json2excel/archive/${J2E_VERSION}.zip && \
unzip ${J2E_VERSION}.zip && \
@@ -29,7 +29,7 @@ RUN wget https://git.coadcorp.com/nathan/json2excel/archive/${J2E_VERSION}.zip &
go mod download && \
go build -o /json2excel cmd/main/main.go
FROM ubuntu:22.04
FROM ubuntu:24.04
RUN apt-get update && apt-get install ca-certificates -y