Compare commits

...
Author SHA1 Message Date
marc eaea9577ea home is back instead of opt 2022-09-24 20:11:10 +02:00
marc ca176b628a entrypoint for prod is a must 2022-09-21 16:49:20 +02:00
marc fc7a469181 apache2-foreground 2022-09-21 16:40:56 +02:00
marc decd443031 rip exec 2022-09-21 16:30:23 +02:00
marc 6ee3e34d0c forcing every command 2022-09-20 15:38:58 +02:00
marc d2ca350fd4 executable 2022-09-20 15:37:34 +02:00
marc ddf8132963 absolute path 2022-09-20 15:35:54 +02:00
marc 7e14892de1 overloading entrypoint 2022-09-20 15:33:56 +02:00
marc fb944657b5 dockerfile 2022-09-19 10:57:56 +02:00
4 changed files with 19 additions and 9 deletions
+4 -2
View File
@@ -21,7 +21,7 @@ RUN a2dissite 000-default.conf && a2ensite numeris.conf && a2enmod rewrite && se
# Enable php conf
COPY docker/php/php.ini /usr/local/etc/php/conf.d/default.ini
WORKDIR /opt/numeris
WORKDIR /home/numeris
COPY . .
# Composer install
@@ -31,5 +31,7 @@ RUN composer install --no-interaction
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN usermod -u 1000 www-data
RUN chown -R www-data:www-data /opt/numeris
RUN chown -R www-data:www-data /home/numeris
RUN chown -R www-data:www-data /var/log/apache2/
ENTRYPOINT [ "/home/numeris/entrypoint.sh" ]
+4 -2
View File
@@ -19,7 +19,7 @@ RUN a2dissite 000-default.conf && a2ensite numeris.conf && a2enmod rewrite && se
# Enable php conf
COPY docker/php/php.ini /usr/local/etc/php/conf.d/default.ini
WORKDIR /opt/numeris
WORKDIR /home/numeris
COPY . .
### Back config ###
@@ -29,8 +29,10 @@ RUN composer install --optimize-autoloader --no-dev --no-interaction
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN usermod -u 1000 www-data
RUN chown -R www-data:www-data /opt/numeris
RUN chown -R www-data:www-data /home/numeris
RUN chown -R www-data:www-data /var/log/apache2/
RUN php artisan config:cache
RUN php artisan route:cache
ENTRYPOINT [ "/home/numeris/entrypoint.sh" ]
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env sh
php artisan key:generate --force
php artisan jwt:secret --force
php artisan migrate:refresh --seed --force
docker-php-entrypoint
apache2-foreground
+3 -5
View File
@@ -1,18 +1,16 @@
FROM node:11.15.0
RUN mkdir -p /home/numeris
WORKDIR /home/numeris
ENV PATH /home/numeris/node_modules/.bin:$PATH
COPY package*.json /home/numeris/
# npm install
WORKDIR /home/numeris
RUN npm install
RUN npm install -g @angular/cli@7.3.9
COPY . /home/numeris
COPY . .
RUN npm rebuild node-sass
WORKDIR /home/numeris
ENTRYPOINT [ "ng", "s", "--host", "0.0.0.0" ]