Skip to content

Commit

Permalink
little update
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvinas committed Jun 21, 2024
1 parent 733049a commit 299483c
Show file tree
Hide file tree
Showing 4 changed files with 874 additions and 607 deletions.
68 changes: 34 additions & 34 deletions .docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.3-fpm
FROM php:8.1-fpm

# Copy composer.lock and composer.json
COPY composer.lock composer.json /var/www/
Expand All @@ -7,39 +7,39 @@ COPY composer.lock composer.json /var/www/
WORKDIR /var/www

# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
git \
curl \
libzip-dev \
libxml2-dev \
libcurl4-openssl-dev \
libonig-dev \
libfreetype6-dev \
libjpeg62-turbo-dev

# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Install extensions
RUN docker-php-ext-install pdo pdo_mysql mysqli soap curl mbstring zip exif
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
RUN docker-php-ext-install gd

# Install Xdebug
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug

# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
#RUN apt-get update && apt-get install -y \
# build-essential \
# libpng-dev \
# libjpeg62-turbo-dev \
# libfreetype6-dev \
# locales \
# zip \
# jpegoptim optipng pngquant gifsicle \
# vim \
# unzip \
# git \
# curl \
# libzip-dev \
# libxml2-dev \
# libcurl4-openssl-dev \
# libonig-dev \
# libfreetype6-dev \
# libjpeg62-turbo-dev
#
## Clear cache
#RUN apt-get clean && rm -rf /var/lib/apt/lists/*
#
## Install extensions
#RUN docker-php-ext-install pdo pdo_mysql mysqli soap curl mbstring zip exif
#RUN docker-php-ext-configure gd --with-freetype --with-jpeg
#RUN docker-php-ext-install gd
#
## Install Xdebug
#RUN pecl install xdebug \
# && docker-php-ext-enable xdebug
#
## Install composer
#RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Add user for laravel application
RUN groupadd -g 1000 www
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
],
"license": "MIT",
"require": {
"php": "^7.2.5|^8.0",
"aws/aws-sdk-php": "^3.314",
"php": "^8.1",
"baopham/dynamodb": "^6.5",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3.1|^7.0.1",
"laravel/framework": "^7.29",
"laravel/tinker": "^2.5"
"laravel/framework": "^v8.0.0"
},
"require-dev": {
"facade/ignition": "^2.0",
Expand Down
Loading

0 comments on commit 299483c

Please sign in to comment.