Skip to content

Commit

Permalink
Fix dockerfile syntax for ARGs and LABELs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredg02 committed Mar 13, 2024
1 parent 7c2a02a commit e2f3d50
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
ARG BASE_IMAGE="openjdk:17-jdk-slim"
FROM ${BASE_IMAGE}

ARG BASE_IMAGE
ARG CREATED=""
ARG SOURCE=""
ARG VERSION=""
ARG BASE_IMAGE="openjdk:17-jdk-slim"
FROM ${BASE_IMAGE}

LABEL org.opencontainers.image.authors="Eclipse Foundation"\
org.opencontainers.image.created=${CREATED}\
org.opencontainers.image.source="${SOURCE}"\
org.opencontainers.image.version="${VERSION}"\
org.opencontainers.image.base.name="${BASE_IMAGE}"
LABEL org.opencontainers.image.authors="Eclipse Foundation"
LABEL org.opencontainers.image.created="${CREATED}"
LABEL org.opencontainers.image.source="${SOURCE}"
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.base.name="${BASE_IMAGE}"

### user name recognition at runtime w/ an arbitrary uid - for OpenShift deployments
COPY uid_entrypoint /usr/local/bin/uid_entrypoint
Expand Down

0 comments on commit e2f3d50

Please sign in to comment.