From ccb601a8cba4afc0007d8bce2dcff27ef38806d2 Mon Sep 17 00:00:00 2001 From: Michael Geitz Date: Sun, 15 Apr 2018 10:31:42 -0400 Subject: [PATCH] Docker Support (#10) * Add Dockerfile * Add Compose --- Dockerfile | 27 +++++++++++++++++++++++++++ docker-compose.yml | 7 +++++++ 2 files changed, 34 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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