Compare commits

2 Commits
main ... 0.2

Author SHA1 Message Date
45c3b97b87 Update Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-29 19:48:10 +10:00
eccd258046 Update .drone.yml
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-04-29 19:47:52 +10:00
2 changed files with 5 additions and 5 deletions

View File

@@ -12,4 +12,4 @@ steps:
repo: registry.coadcorp.com/export-xlsx repo: registry.coadcorp.com/export-xlsx
cache_from: "registry.coadcorp.com/export-xlsx:0.1" cache_from: "registry.coadcorp.com/export-xlsx:0.1"
tags: tags:
- 0.1 - 0.2

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 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; 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 WORKDIR /src
ENV CGO_LDFLAGS "-static -w -s" 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 && \ RUN wget https://git.coadcorp.com/nathan/json2excel/archive/${J2E_VERSION}.zip && \
unzip ${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 mod download && \
go build -o /json2excel cmd/main/main.go 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 RUN apt-get update && apt-get install ca-certificates -y