1.0.0-beta.2
Diff
Cargo.lock | 2 +-
Cargo.toml | 2 +-
docker/alpine/Dockerfile | 26 ++++++++++++++++++++++++++
docker/scratch/Dockerfile | 18 ++++++++++++++++++
4 files changed, 46 insertions(+), 2 deletions(-)
@@ -561,7 +561,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "static-web-server"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
dependencies = [
"chrono 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.5.13 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1,6 +1,6 @@
[package]
name = "static-web-server"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
authors = ["Jose Quintana <https://git.io/joseluisq>"]
[dependencies]
@@ -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"]
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.2" \
org.opencontainers.image.documentation="https://git.joseluisq.net/joseluisq/static-web-server"
@@ -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"]
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.2" \
org.opencontainers.image.documentation="https://git.joseluisq.net/joseluisq/static-web-server"