fickit: include local pkg
This commit is contained in:
parent
bcbf5b35cf
commit
5d644fa366
17 changed files with 404 additions and 0 deletions
26
fickit-pkg/rsync/Dockerfile
Normal file
26
fickit-pkg/rsync/Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM alpine:latest AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
apk-tools \
|
||||
busybox \
|
||||
ca-certificates \
|
||||
musl \
|
||||
openssh-server \
|
||||
openssh-client \
|
||||
rsync \
|
||||
tini \
|
||||
util-linux \
|
||||
&& true
|
||||
#RUN mv /out/etc/apk/repositories.upstream /out/etc/apk/repositories
|
||||
|
||||
FROM scratch
|
||||
ENTRYPOINT []
|
||||
WORKDIR /
|
||||
COPY --from=mirror /out/ /
|
||||
COPY etc/ /etc/
|
||||
COPY usr/ /usr/
|
||||
RUN mkdir -p /etc/ssh /root/.ssh && chmod 0700 /root/.ssh
|
||||
CMD ["/sbin/tini", "/usr/bin/ssh.sh"]
|
||||
LABEL org.mobyproject.config='{"pid": "host", "binds": ["/root/.ssh:/root/.ssh", "/etc/resolv.conf:/etc/resolv.conf", "/run:/run", "/tmp:/tmp", "/etc:/hostroot/etc", "/usr/bin/ctr:/usr/bin/ctr", "/usr/bin/runc:/usr/bin/runc", "/containers:/containers","/var/log:/var/log","/dev:/dev","/sys:/sys"], "capabilities": ["all"]}'
|
||||
Reference in a new issue