Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinnrry committed Feb 18, 2024
1 parent 63b97ea commit 483bfa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DockerfileGithubAction
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang as serverbuild
FROM golang:alpine as serverbuild

WORKDIR /work

COPY server .

RUN apt-get update && apt-get install -y git
RUN apk update && apk add git
RUN go build -ldflags "-X 'main.goVersion=$(go version)' -X 'main.gitHash=$(git show -s --format=%H)' -X 'main.buildTime=$(TZ=UTC-8 date +%Y-%m-%d" "%H:%M:%S)'" -o pmail main.go


Expand Down

0 comments on commit 483bfa1

Please sign in to comment.