index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-06-22 0:09:26.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-06-22 0:09:26.0 +00:00:00
commit
a69f7452a0df6ab283235d6854b3de84b19d0405 [patch]
tree
c015827843d7cfe41e0d0d0a367facbdb54d64a4
parent
1ba72096912379cf68e7524f0f2ba1907213cc8a
download
a69f7452a0df6ab283235d6854b3de84b19d0405.tar.gz

fix: wrong stage image tag



Diff

 docker/scratch/Dockerfile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/docker/scratch/Dockerfile b/docker/scratch/Dockerfile
index e7bc9b7..d6a5343 100644
--- a/docker/scratch/Dockerfile
+++ b/docker/scratch/Dockerfile
@@ -1,13 +1,16 @@
ARG SERVER_VERSION=0.0.0

FROM joseluisq/static-web-server:${SERVER_VERSION}-alpine AS latest

FROM scratch

ARG SERVER_VERSION=0.0.0
ENV SERVER_VERSION=${SERVER_VERSION}

LABEL version="${SERVER_VERSION}" \
    description="A blazing fast static files-serving web server powered by Rust Iron." \
    maintainer="Jose Quintana <joseluisq.net>"

COPY --from=joseluisq/static-web-server:${SERVER_VERSION}-alpine /usr/local/bin/static-web-server /
COPY --from=latest /usr/local/bin/static-web-server /
COPY ./public /public

EXPOSE 80