docker: pass in build-args, add $NOW

This commit is contained in:
Ralf Vogler 2023-08-27 23:32:56 +02:00
parent 2eb17a1419
commit 8a010dbcc7
3 changed files with 21 additions and 6 deletions

View file

@ -60,19 +60,23 @@ COPY . .
RUN dos2unix *.sh && chmod +x *.sh
COPY docker-entrypoint.sh /usr/local/bin/
ARG COMMIT=""
ARG BRANCH=""
ARG NOW=""
ENV COMMIT=${COMMIT}
ENV BRANCH=${BRANCH}
ENV NOW=${NOW}
LABEL org.opencontainers.image.title="free-games-claimer" \
org.opencontainers.image.name="free-games-claimer" \
org.opencontainers.image.description="Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG" \
org.opencontainers.image.url="https://github.com/vogler/free-games-claimer" \
org.opencontainers.image.source="https://github.com/vogler/free-games-claimer" \
org.opencontainers.image.revision=${COMMIT_SHA} \
org.opencontainers.image.revision=${COMMIT} \
org.opencontainers.image.ref.name=${BRANCH} \
org.opencontainers.image.base.name="ubuntu:jammy" \
org.opencontainers.image.version="latest"
ENV COMMIT_SHA=${COMMIT_SHA}
ENV BRANCH=${BRANCH}
# Configure VNC via environment variables:
ENV VNC_PORT 5900
ENV NOVNC_PORT 6080