This commit is contained in:
commit
7c1ae2177f
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/s3p_extract
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM alpine as builder
|
||||
|
||||
RUN apk add --no-cache build-base git
|
||||
|
||||
RUN git clone --depth=1 https://github.com/mon/s3p_extract \
|
||||
&& cd s3p_extract \
|
||||
&& gcc -Wall -Werror s3p_extract.c -static -o s3p_extract
|
||||
|
||||
FROM alpine
|
||||
|
||||
COPY --from=builder /s3p_extract/s3p_extract /usr/local/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/s3p_extract"]
|
Reference in a new issue