index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2019-09-05 21:55:53.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2019-09-05 21:55:53.0 +00:00:00
commit
e2a439410a85473ee35cbf7f569d03244be9c357 [patch]
tree
68cf3699f8381142d64b0f2fd87d27be00147491
parent
7a3bbecf2b2f3518461760c0dbb98189c8eb39ae
download
e2a439410a85473ee35cbf7f569d03244be9c357.tar.gz

1.0.0-beta.1



Diff

 docker/alpine/Dockerfile  | 26 ++++++++++++++++++++++++++
 docker/scratch/Dockerfile | 18 ++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile
new file mode 100644
index 0000000..952f0dd
--- /dev/null
+++ b/docker/alpine/Dockerfile
@@ -0,0 +1,26 @@
FROM alpine:3.10

LABEL maintainer="Jose Quintana <joseluisq.net>"

RUN apk --no-cache add ca-certificates tzdata
RUN set -ex; \
    apkArch="$(apk --print-arch)"; \
    case "$apkArch" in \
    armhf) arch='armv6' ;; \
    aarch64) arch='arm64' ;; \
    x86_64) arch='amd64' ;; \
    *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \
    esac;

COPY ./bin/static-web-server /usr/local/bin/
COPY ./public /public
EXPOSE 80
CMD ["static-web-server"]

# Metadata
LABEL org.opencontainers.image.vendor="Jose Quintana" \
    org.opencontainers.image.url="https://git.joseluisq.net/joseluisq/static-web-server" \
    org.opencontainers.image.title="Static Web Server" \
    org.opencontainers.image.description="A blazing fast web server to static files-serving powered by Rust." \
    org.opencontainers.image.version="1.0.0-beta.1" \
    org.opencontainers.image.documentation="https://git.joseluisq.net/joseluisq/static-web-server"
diff --git a/docker/scratch/Dockerfile b/docker/scratch/Dockerfile
new file mode 100644
index 0000000..6358c0e
--- /dev/null
+++ b/docker/scratch/Dockerfile
@@ -0,0 +1,18 @@
FROM scratch

LABEL maintainer="Jose Quintana <joseluisq.net>"

COPY ./bin/static-web-server /
COPY ./public /public

EXPOSE 80
VOLUME ["/public"]
ENTRYPOINT ["/static-web-server"]

# Metadata
LABEL org.opencontainers.image.vendor="Jose Quintana" \
    org.opencontainers.image.url="https://git.joseluisq.net/joseluisq/static-web-server" \
    org.opencontainers.image.title="Static Web Server" \
    org.opencontainers.image.description="A blazing fast web server to static files-serving powered by Rust." \
    org.opencontainers.image.version="1.0.0-beta.1" \
    org.opencontainers.image.documentation="https://git.joseluisq.net/joseluisq/static-web-server"