wip
This commit is contained in:
+3
-3
@@ -6,9 +6,9 @@
|
|||||||
"license": "CC-BY-NC 4.0",
|
"license": "CC-BY-NC 4.0",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"ext-gd": "^8.2",
|
"ext-gd": "*",
|
||||||
"ext-mbstring": "^8.2",
|
"ext-mbstring": "*",
|
||||||
"ext-zip": "^1.22",
|
"ext-zip": "*",
|
||||||
"finnhub/client": "master@dev",
|
"finnhub/client": "master@dev",
|
||||||
"laravel/framework": "^11.35",
|
"laravel/framework": "^11.35",
|
||||||
"laravel/jetstream": "^5.1",
|
"laravel/jetstream": "^5.1",
|
||||||
|
|||||||
+23
-24
@@ -6,6 +6,29 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
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 +x ./docker/entrypoint.sh \
|
||||||
|
# Install common php extension dependencies
|
||||||
|
&& apt-get update && apt-get install -y \
|
||||||
|
nginx \
|
||||||
|
libfreetype-dev \
|
||||||
|
libjpeg62-turbo-dev \
|
||||||
|
libpng-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
libzip-dev \
|
||||||
|
libicu-dev \
|
||||||
|
supervisor \
|
||||||
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
|
&& docker-php-ext-install -j$(nproc) \
|
||||||
|
gd \
|
||||||
|
zip \
|
||||||
|
pdo_mysql \
|
||||||
|
mysqli \
|
||||||
|
intl \
|
||||||
|
# remove default nginx config
|
||||||
|
&& rm /etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
# 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 \
|
||||||
curl \
|
curl \
|
||||||
@@ -21,30 +44,6 @@ RUN composer install --no-scripts --optimize-autoloader
|
|||||||
# Install Node dependencies and build assets
|
# Install Node dependencies and build assets
|
||||||
RUN npm install && npm run build
|
RUN npm install && npm run build
|
||||||
|
|
||||||
# Set permissions
|
|
||||||
RUN chown -R www-data:www-data . \
|
|
||||||
&& chmod +x ./docker/entrypoint.sh \
|
|
||||||
# Install common php extension dependencies
|
|
||||||
&& apt-get update && apt-get install -y \
|
|
||||||
nginx \
|
|
||||||
libfreetype-dev \
|
|
||||||
libjpeg62-turbo-dev \
|
|
||||||
libpng-dev \
|
|
||||||
zlib1g-dev \
|
|
||||||
libzip-dev \
|
|
||||||
libicu-dev \
|
|
||||||
supervisor \
|
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
|
||||||
&& docker-php-ext-configure zip \
|
|
||||||
&& docker-php-ext-install -j$(nproc) \
|
|
||||||
gd \
|
|
||||||
zip \
|
|
||||||
pdo_mysql \
|
|
||||||
mysqli \
|
|
||||||
intl \
|
|
||||||
# remove default nginx config
|
|
||||||
&& rm /etc/nginx/sites-enabled/default
|
|
||||||
|
|
||||||
# Copy the custom Nginx configuration
|
# Copy the custom Nginx configuration
|
||||||
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user