commit 416b4fe04ca12679adc53e002fa6520b4496a669 Author: Simon Bruder Date: Sun Jun 14 12:37:29 2020 +0200 Init diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a657b9c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +name: default + +steps: +- name: docker + image: plugins/docker + settings: + registry: r.sbruder.de + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: r.sbruder.de/unxwb diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..062e913 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM alpine as builder + +RUN apk add --no-cache \ + build-base \ + unzip \ + zlib-dev \ + zlib-static + +COPY unxwb.zip / + +RUN mkdir unxwb \ + && cd unxwb \ + && unzip ../unxwb.zip \ + && gcc -I. -o unxwb -O3 -static unxwb.c -lz + +FROM alpine + +RUN apk add --no-cache tini + +COPY --from=builder /unxwb/unxwb /usr/local/bin/ + +ENTRYPOINT ["tini", "--", "unxwb"] diff --git a/unxwb.zip b/unxwb.zip new file mode 100644 index 0000000..f98d7f2 Binary files /dev/null and b/unxwb.zip differ