Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Update base image
Browse files Browse the repository at this point in the history
  • Loading branch information
zdevaty committed Oct 27, 2023
1 parent e3af717 commit 9e0783b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ WORKDIR /
COPY . ./

RUN go mod download
RUN go build -o ../app

RUN DATE=$(date) && \
GIT_COMMIT=$(git rev-list -1 HEAD) && \
go build -ldflags "-X 'saml-sso/apiservices.BuildTimestamp=$DATE' -X 'saml-sso/apiservices.GitCommit=$GIT_COMMIT'" -o ../app

FROM eliona/base-alpine:latest-3.17 AS target
FROM eliona/base-alpine:latest AS target

RUN apk update
RUN apk upgrade
Expand Down

0 comments on commit 9e0783b

Please sign in to comment.