Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bookings #65

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ build/

### VS Code ###
.vscode/

/db/java-shareit.mv.db
/db/java-shareit.trace.db
38 changes: 38 additions & 0 deletions docker/_docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM php:8.2-fpm

# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential libicu-dev libzip-dev libxml2-dev libpng-dev \
libjpeg62-turbo-dev libfreetype6-dev libonig-dev locales zip \
unzip jpegoptim optipng pngquant gifsicle vim git curl \
wget libicu-dev g++ libpq-dev libssl-dev gettext

RUN docker-php-ext-configure zip && docker-php-ext-install zip
RUN docker-php-ext-install soap
RUN docker-php-ext-install sockets

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

# Install PHP extensions
RUN docker-php-ext-install pdo mbstring exif pcntl bcmath gd opcache

# pgsql
RUN docker-php-ext-install pdo_pgsql pgsql
RUN docker-php-ext-install pdo_mysql mysqli

#Redis
RUN pecl install -o -f redis && docker-php-ext-enable redis

# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

# Create system user to run Composer and Artisan Commands
RUN useradd -G www-data,root -u 1000 -d /home/shareit shareit
RUN mkdir -p /home/shareit/.composer && \
chown -R shareit:shareit /home/shareit

# Set working directory
WORKDIR /var/www

USER shareit
Loading
Loading