Skip to content

Commit

Permalink
Docker Support (#10)
Browse files Browse the repository at this point in the history
* Add Dockerfile
* Add Compose
  • Loading branch information
Michael Geitz committed Apr 15, 2018
1 parent 92db541 commit ccb601a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'
services:
albumfs: &base
build: .
command: /bin/bash
volumes:
- .:/bin/albumfs

0 comments on commit ccb601a

Please sign in to comment.