Skip to content

Commit

Permalink
Take Golang 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
za419 committed Jul 31, 2024
1 parent 6471bbc commit 9733442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cadence.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# syntax=docker/dockerfile:1
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-bullseye as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-bullseye as builder
ARG TARGETPLATFORM BUILDPLATFORM TARGETOS TARGETARCH
WORKDIR /cadence
COPY ./* ./
RUN go mod download
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -o /cadence-server

ARG ARCH=
FROM ${ARCH}golang:1.21-alpine
FROM ${ARCH}golang:1.22-alpine
LABEL maintainer="Ken Ellorando (kenellorando.com)"
LABEL source="github.com/kenellorando/cadence"
COPY --from=builder /cadence/public /cadence/server/public
COPY --from=builder /cadence-server /cadence/cadence-server

RUN adduser --disabled-password --gecos "" cadence
RUN chown cadence /cadence/ /cadence/* /cadence/cadence-server
RUN chmod u+wrx /cadence/ /cadence/*
RUN chmod u+wrx /cadence/ /cadence/*

EXPOSE 8080
USER cadence
Expand Down
2 changes: 1 addition & 1 deletion src/server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kenellorando/cadence

go 1.21
go 1.22

require (
github.com/Jeffail/gabs v1.4.0
Expand Down

0 comments on commit 9733442

Please sign in to comment.