Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 190fb6d

Browse files
mhellmeierandi34
authored andcommitted
feat: Add a docker setup
1 parent 5f5dab5 commit 190fb6d

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM webdevops/php-nginx
2+
3+
# Update and install dependencies
4+
RUN apt update
5+
6+
RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash -
7+
RUN apt install -y build-essential git php-gd php-zip gphoto2 libimage-exiftool-perl nodejs rsync udisks2
8+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
9+
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
10+
RUN apt update && apt install -y yarn
11+
12+
# Copy files
13+
WORKDIR /app
14+
COPY . .
15+
16+
# Install and build
17+
RUN git submodule update --init
18+
RUN yarn install
19+
RUN yarn build

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ If you're having trouble or questions please take a look at our
107107
[FAQ](https://github.com/andi34/photobooth/wiki#faq---frequently-asked-questions)
108108
before opening a new issue.
109109

110+
For local testing and development, the docker setup can be used with `docker-compose up --build`.
111+
110112
### :mag: Changelog
111113

112114
Please take a look at the changelog in our [Photobooth Wiki](https://github.com/andi34/photobooth/wiki/changelog).

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3.9"
2+
3+
services:
4+
photobooth:
5+
build: .
6+
volumes:
7+
- ./:/app
8+
- /app/resources/css/
9+
- /app/resources/js/
10+
- /app/vendor/
11+
ports:
12+
- "8080:80"

0 commit comments

Comments
 (0)