forked from orisintel/laravel-process-stamps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
quentin.schmick
committed
Jun 29, 2022
1 parent
9f33443
commit dc4f4c9
Showing
3 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3.7" | ||
services: | ||
app: | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/Dockerfile | ||
image: processstamps | ||
container_name: processstamps-app | ||
restart: unless-stopped | ||
working_dir: /var/www/ | ||
volumes: | ||
- ./:/var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM php:8.0-fpm | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
curl \ | ||
libpng-dev \ | ||
libonig-dev \ | ||
libxml2-dev \ | ||
libzip-dev \ | ||
zip \ | ||
unzip | ||
|
||
# Clear cache | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install PHP extensions | ||
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip | ||
|
||
# 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 -d /home/ubuntu ubuntu | ||
RUN mkdir -p /home/ubuntu/.composer && \ | ||
chown -R ubuntu:ubuntu /home/ubuntu | ||
|
||
# Set working directory | ||
WORKDIR /var/www | ||
|
||
USER ubuntu |