-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Dockerfile * Add Compose
- Loading branch information
Michael Geitz
committed
Apr 15, 2018
1 parent
92db541
commit ccb601a
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |