From 65007f957914d6c16f3e7922c04bbbb6ca9222da Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Tue, 8 Feb 2022 23:35:54 +0100 Subject: [PATCH] fix: wrong binary path for alpine docker image --- docker/alpine/Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index 4dbfad0..16f7038 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -4,10 +4,6 @@ ARG TARGETPLATFORM ARG SERVER_VERSION=0.0.0 ENV SERVER_VERSION=${SERVER_VERSION} -LABEL version="${SERVER_VERSION}" \ - description="A blazing fast and asynchronous web server for static files-serving." \ - maintainer="Jose Quintana " - RUN apk --no-cache add ca-certificates tzdata RUN set -ex; \ case "$TARGETPLATFORM" in \ @@ -26,7 +22,16 @@ RUN set -ex; \ FROM alpine:3.14 -COPY --from=build /usr/local/bin/static-web-server / +ARG SERVER_VERSION=0.0.0 +ENV SERVER_VERSION=${SERVER_VERSION} + +LABEL version="${SERVER_VERSION}" \ + description="A blazing fast and asynchronous web server for static files-serving." \ + maintainer="Jose Quintana " + +RUN apk --no-cache add ca-certificates tzdata + +COPY --from=build /usr/local/bin/static-web-server /usr/local/bin/ COPY ./docker/alpine/entrypoint.sh / COPY ./docker/public /public -- libgit2 1.7.2