Adding tzdata into Dockerfile as it's required for runing alice-lg, and adding a tag for each build that's sortable

This commit is contained in:
nicko170 2022-02-08 23:14:17 +11:00 committed by GitHub
parent 02b828dfa6
commit f05531979f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,7 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-$(git rev-parse --short HEAD)-$(date +%s)
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc

View File

@ -40,6 +40,9 @@ WORKDIR /src/alice-lg/cmd/alice-lg
RUN make alpine
FROM alpine:latest
RUN apk add -U tzdata
COPY --from=backend /src/alice-lg/cmd/alice-lg/alice-lg-linux-amd64 /usr/bin/alice-lg
RUN ls -lsha /usr/bin/alice-lg