Skip to content

Commit

Permalink
autobuild the API stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
digininja committed Feb 3, 2025
1 parent 4d07524 commit fb28392
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
**/.github
**/Dockerfile*
**/.dockerignore
**/compose*
**/compose.yml
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ WORKDIR /var/www/html
# https://www.php.net/manual/en/image.installation.php
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev iputils-ping \
&& apt-get install -y zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev iputils-ping git \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-jpeg --with-freetype \
&& a2enmod rewrite \
# Use pdo_sqlite instead of pdo_mysql if you want to use sqlite
&& docker-php-ext-install gd mysqli pdo pdo_mysql

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
COPY --chown=www-data:www-data . .
COPY --chown=www-data:www-data config/config.inc.php.dist config/config.inc.php

# This is configuring the stuff for the API
RUN cd /var/www/html/vulnerabilities/api \
&& composer install \

0 comments on commit fb28392

Please sign in to comment.