mirror of
https://github.com/s83/docker-brudi-rclone.git
synced 2024-11-30 12:45:30 +00:00
Update Dockerfile
This commit is contained in:
parent
fd853e68ec
commit
3f787b3e01
36
Dockerfile
36
Dockerfile
@ -1,7 +1,31 @@
|
||||
FROM quay.io/mittwald/brudi
|
||||
FROM postgres:16.1-alpine3.18
|
||||
|
||||
USER root
|
||||
RUN apk add --no-cache --upgrade rclone curl \
|
||||
&& mkdir -p /home/brudi/.config/rclone/ \
|
||||
&& touch /home/brudi/.config/rclone/rclone.conf
|
||||
USER ${BRUDI_USER}
|
||||
LABEL maintainer="Mittwald CM Service <https://github.com/mittwald>"
|
||||
|
||||
ENV BRUDI_USER="brudi" \
|
||||
BRUDI_GID="1000" \
|
||||
BRUDI_UID="1000"
|
||||
|
||||
COPY --from=quay.io/mittwald/brudi:0.1 /usr/local/bin/brudi /usr/local/bin/brudi
|
||||
COPY --from=restic/restic:0.11.0 /usr/bin/restic /usr/local/bin/restic
|
||||
COPY --from=redis:alpine /usr/local/bin/redis-cli /usr/local/bin/redis-cli
|
||||
|
||||
RUN apk add --no-cache --upgrade \
|
||||
mysql-client \
|
||||
rclone \
|
||||
curl \
|
||||
&& \
|
||||
addgroup \
|
||||
-S "${BRUDI_USER}" \
|
||||
-g "${BRUDI_GID}" \
|
||||
&& \
|
||||
adduser \
|
||||
-u "${BRUDI_UID}" \
|
||||
-S \
|
||||
-G "${BRUDI_USER}" \
|
||||
"${BRUDI_USER}"
|
||||
|
||||
USER ${BRUDI_USER}
|
||||
WORKDIR /home/${BRUDI_USER}
|
||||
|
||||
ENTRYPOINT ["brudi"]
|
||||
|
Loading…
Reference in New Issue
Block a user