cleanup
This commit is contained in:
+16
-15
@@ -23,13 +23,8 @@ ENV VITE_APP_NAME=Investbrain
|
|||||||
COPY . /var/www/app
|
COPY . /var/www/app
|
||||||
WORKDIR /var/www/app
|
WORKDIR /var/www/app
|
||||||
|
|
||||||
# Set permissions
|
|
||||||
RUN chown -R www-data:www-data . \
|
|
||||||
&& chmod -R 775 ./storage \
|
|
||||||
&& chmod +x ./docker/entrypoint.sh \
|
|
||||||
&& usermod -s /bin/bash www-data \
|
|
||||||
# Install common php extension dependencies
|
# Install common php extension dependencies
|
||||||
&& apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
nginx \
|
nginx \
|
||||||
libfreetype-dev \
|
libfreetype-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
@@ -38,15 +33,18 @@ RUN chown -R www-data:www-data . \
|
|||||||
libzip-dev \
|
libzip-dev \
|
||||||
libicu-dev \
|
libicu-dev \
|
||||||
supervisor \
|
supervisor \
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
&& docker-php-ext-install -j$(nproc) \
|
&& docker-php-ext-install -j$(nproc) \
|
||||||
gd \
|
gd pgsql bcmath zip pdo_mysql mysqli intl \
|
||||||
zip \
|
&& apt-get -y autoremove \
|
||||||
pdo_mysql \
|
&& apt-get clean \
|
||||||
mysqli \
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
intl \
|
|
||||||
# remove default nginx config
|
# Set permissions
|
||||||
&& rm /etc/nginx/sites-enabled/default
|
RUN chown -R www-data:www-data . \
|
||||||
|
&& chmod -R 775 ./storage \
|
||||||
|
&& chmod +x ./docker/entrypoint.sh \
|
||||||
|
&& usermod -s /bin/bash www-data
|
||||||
|
|
||||||
# Install Composer and Node.js
|
# Install Composer and Node.js
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
@@ -61,6 +59,9 @@ RUN apt-get update && apt-get install -y \
|
|||||||
RUN composer install --no-scripts --optimize-autoloader \
|
RUN composer install --no-scripts --optimize-autoloader \
|
||||||
&& npm install && npm run build
|
&& npm install && npm run build
|
||||||
|
|
||||||
|
# Remove default nginx config
|
||||||
|
RUN rm /etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
# Copy over configs
|
# Copy over configs
|
||||||
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY ./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY ./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|||||||
@@ -11,9 +11,6 @@ use App\Http\Controllers\InvitedOnboardingController;
|
|||||||
use Laravel\Jetstream\Http\Controllers\Livewire\PrivacyPolicyController;
|
use Laravel\Jetstream\Http\Controllers\Livewire\PrivacyPolicyController;
|
||||||
use Laravel\Jetstream\Http\Controllers\Livewire\TermsOfServiceController;
|
use Laravel\Jetstream\Http\Controllers\Livewire\TermsOfServiceController;
|
||||||
|
|
||||||
Route::get('/test', function() {
|
|
||||||
dd(env('APP_NAME'), env('DB_CONNECTION'));
|
|
||||||
});
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
if (!config('investbrain.self_hosted', true) && View::exists('landing-page::index')) {
|
if (!config('investbrain.self_hosted', true) && View::exists('landing-page::index')) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user