This commit is contained in:
commit
416b4fe04c
13
.drone.yml
Normal file
13
.drone.yml
Normal 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
22
Dockerfile
Normal 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"]
|
Reference in a new issue