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

Commit

Permalink
feat: Add a docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mhellmeier authored and andi34 committed Mar 20, 2022
1 parent 5f5dab5 commit 190fb6d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM webdevops/php-nginx

# Update and install dependencies
RUN apt update

RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash -
RUN apt install -y build-essential git php-gd php-zip gphoto2 libimage-exiftool-perl nodejs rsync udisks2
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt update && apt install -y yarn

# Copy files
WORKDIR /app
COPY . .

# Install and build
RUN git submodule update --init
RUN yarn install
RUN yarn build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ If you're having trouble or questions please take a look at our
[FAQ](https://github.com/andi34/photobooth/wiki#faq---frequently-asked-questions)
before opening a new issue.

For local testing and development, the docker setup can be used with `docker-compose up --build`.

### :mag: Changelog

Please take a look at the changelog in our [Photobooth Wiki](https://github.com/andi34/photobooth/wiki/changelog).
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3.9"

services:
photobooth:
build: .
volumes:
- ./:/app
- /app/resources/css/
- /app/resources/js/
- /app/vendor/
ports:
- "8080:80"

0 comments on commit 190fb6d

Please sign in to comment.