Working version
Not sure that I'd bet the bank that this is secure. It probably is. From what I can see, you have to be able to go in and do things as root.
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -1,17 +1,19 @@
|
||||
FROM cloudron/base:5.0.0 AS base
|
||||
|
||||
# RUN apt-get update ; apt-get install -y \
|
||||
# curl
|
||||
|
||||
WORKDIR /app/bin
|
||||
ADD https://garagehq.deuxfleurs.fr/_releases/v2.1.0/aarch64-unknown-linux-musl/garage /app/bin/garage
|
||||
FROM cloudron/base:5.0.0
|
||||
|
||||
# Garage wants these directories for storing stuff.
|
||||
# We want it here so that /app/data gets backed up.
|
||||
RUN mkdir -p /app/data/garage/data /app/data/garage/meta
|
||||
|
||||
WORKDIR /app/data
|
||||
COPY garage.toml /app/data/garage.toml
|
||||
ADD https://garagehq.deuxfleurs.fr/_releases/v2.1.0/x86_64-unknown-linux-musl/garage /usr/bin/garage
|
||||
RUN chmod 755 /usr/bin/garage
|
||||
|
||||
ADD start.bash /app/data/start.bash
|
||||
CMD [ "/app/data/start.bash" ]
|
||||
COPY garage.toml /garage/garage.toml
|
||||
# Create a symlink that will become dead; we'll fill it again
|
||||
# with the startup script.
|
||||
RUN ln -s /app/data/garage.toml /etc/garage.toml
|
||||
|
||||
COPY start.bash /garage/start.bash
|
||||
RUN chmod 755 /garage/start.bash
|
||||
|
||||
|
||||
CMD [ "/garage/start.bash" ]
|
||||
Reference in New Issue
Block a user