Init
continuous-integration/drone/push Build is passing Details

master
Simon Bruder 2020-06-14 12:37:29 +02:00
commit 416b4fe04c
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
3 changed files with 35 additions and 0 deletions

13
.drone.yml Normal file
View File

@ -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

22
Dockerfile Normal file
View File

@ -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"]

BIN
unxwb.zip Normal file

Binary file not shown.