mirror of
https://github.com/sakaljurgis/actions-api.git
synced 2026-07-08 22:07:40 +00:00
initial commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
FROM php:apache
|
||||
|
||||
# workaround for laravel public folder (entry file)
|
||||
ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
|
||||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
|
||||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
# workaround for storage access
|
||||
ARG UID
|
||||
RUN if [ -z "${UID}" ] ; then echo UID argument is NOT provided ; else usermod --non-unique --uid 1000 www-data ; fi
|
||||
|
||||
# enable mod_rewrite for laravel routing to work (.htaccess)
|
||||
RUN a2enmod rewrite
|
||||
|
||||
COPY . /var/www/html
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
||||
|
||||
WORKDIR /var/www/html
|
||||
RUN composer install
|
||||
Reference in New Issue
Block a user