mirror of
https://github.com/static-web-server/static-web-server.git
synced 2026-01-25 05:06:33 +00:00
* chore: setup user public directory, permissions and symlink * chore: alpine and debian rootless * docs: rootless information
30 lines
995 B
Docker
30 lines
995 B
Docker
ARG SERVER_VERSION=0.0.0
|
|
|
|
FROM joseluisq/static-web-server:${SERVER_VERSION}-alpine AS build
|
|
|
|
FROM scratch
|
|
|
|
ARG SERVER_VERSION=0.0.0
|
|
ENV SERVER_VERSION=${SERVER_VERSION}
|
|
|
|
LABEL version="${SERVER_VERSION}" \
|
|
description="A cross-platform, high-performance and asynchronous web server for static files-serving." \
|
|
maintainer="Jose Quintana <joseluisq.net>"
|
|
|
|
COPY --from=build /usr/local/bin/static-web-server /
|
|
COPY ./docker/public /public
|
|
|
|
EXPOSE 80
|
|
|
|
STOPSIGNAL SIGQUIT
|
|
|
|
ENTRYPOINT ["/static-web-server"]
|
|
|
|
# Metadata
|
|
LABEL org.opencontainers.image.vendor="Jose Quintana" \
|
|
org.opencontainers.image.url="https://github.com/static-web-server/static-web-server" \
|
|
org.opencontainers.image.title="Static Web Server" \
|
|
org.opencontainers.image.description="A cross-platform, high-performance and asynchronous web server for static files-serving." \
|
|
org.opencontainers.image.version="$SERVER_VERSION" \
|
|
org.opencontainers.image.documentation="https://static-web-server.net"
|