forked from biblioverse/biblioteca
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
FROM ghcr.io/biblioverse/biblioteca-docker:latest | ||
FROM ghcr.io/biblioverse/biblioteca-docker:latest AS base | ||
WORKDIR /var/www/html | ||
|
||
FROM base AS prod | ||
USER root | ||
COPY . /var/www/html | ||
|
||
|
||
|
||
WORKDIR /var/www/html | ||
|
||
RUN composer install | ||
RUN npm install | ||
RUN npm run build | ||
|
||
RUN chown -R www-data:www-data /var/www/html | ||
|
||
USER www-data | ||
|
||
FROM base AS dev | ||
USER root | ||
RUN /usr/local/bin/install-php-extensions xdebug | ||
|
||
RUN echo ' \n\ | ||
[xdebug] \n\ | ||
xdebug.idekey=PHPSTORM \n\ | ||
xdebug.mode=off \n\ | ||
xdebug.client_host=host.docker.internal\n ' >> /usr/local/etc/php/conf.d/biblioteca.ini | ||
USER www-data |
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