diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..32d002c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM debian:stretch + +LABEL maintainer="mgeitz" \ + version="0.1.5" \ + description="This image is used to start the albumfs executable" + +RUN groupadd -g 999 albumfs && \ + useradd -r -u 999 -g albumfs albumfs + +RUN apt-get update -y && apt-get install -y \ + libfuse-dev \ + libpng-dev \ + libssl-dev \ + pkg-config \ + build-essential + +WORKDIR /bin/albumfs + +COPY . . + +RUN make all && \ + make install && \ + chown -R albumfs:albumfs ./ + +USER albumfs + +CMD /bin/bash diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..19e166c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: '3' +services: + albumfs: &base + build: . + command: /bin/bash + volumes: + - .:/bin/albumfs