-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (31 loc) · 941 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM php:8.1-fpm
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
git \
curl \
libpq-dev \
netcat-traditional
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# PHP extensions
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions bz2 gd gettext exif pdo_pgsql grpc pgsql zip
RUN docker-php-ext-enable pdo_pgsql pgsql grpc exif gettext gd bz2 zip
# Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Set working directory
COPY . /var/www
WORKDIR /var/www
RUN chmod -R 777 storage/
RUN composer i
RUN php artisan jwt:secret
EXPOSE 9000