-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 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,19 @@ | ||
FROM php:7-buster | ||
|
||
RUN apt-get update > /dev/null | ||
RUN apt-get install -y nodejs npm libzip-dev libgtk2.0-0 libgtk-3-0 libgbm-dev libldap2-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb | ||
|
||
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ | ||
RUN docker-php-ext-install zip ldap | ||
RUN docker-php-ext-enable zip ldap | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
WORKDIR "/var/www/filegator/" | ||
|
||
COPY . . | ||
RUN composer install | ||
RUN npm i | ||
RUN cp -n configuration_sample.php configuration.php | ||
|
||
CMD ["nohup", "bash", "-c", "npm run serve"] |
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
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,12 @@ | ||
services: | ||
filegator: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- "8080:8080" # frontend port, see package.json | ||
- "8081:8081" # backend port, see package.json and .env.local | ||
volumes: | ||
- ./frontend:/var/www/filegator/frontend | ||
- ./backend:/var/www/filegator/backend | ||
#- ./configuration.php:/var/www/filegator/frontend/configuration.php |
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