Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labels into dockerfile #16

Merged
merged 4 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ RUN make build

FROM alpine:${ALPINE_VERSION}

ARG git_commit=unspecified
LABEL git_commit="${git_commit}"
LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/FRINXio/krakend-ce"

RUN apk add --no-cache ca-certificates tzdata curl && \
adduser -u 1000 -S -D -H krakend && \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ build_on_docker: docker-builder-linux

build_docker_image:
@make test_token_env
docker build --no-cache --pull --build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --build-arg TOKEN=${TOKEN} -t frinx/krakend:${IMAGE_VERSION} .
docker build --no-cache --pull --build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --build-arg TOKEN=${TOKEN} --build-arg git_commit=$(git rev-parse HEAD) -t frinx/krakend:${IMAGE_VERSION} .

# Build the container using the Dockerfile (alpine)
docker:
Expand Down