-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 850 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
FROM php:latest
RUN apt-get update -y && apt-get install -y \
curl \
openssl \
zip \
unzip \
git \
libonig-dev \
zlib1g-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install mbstring
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get update && apt-get install -y nodejs
RUN docker-php-ext-install mysqli pdo pdo_mysql json
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install -j$(nproc) gd
RUN useradd -ms /bin/bash mpn
WORKDIR /app
RUN chmod -R 777 /app
COPY --chown=mpn:mpn . /app
RUN composer install
CMD php artisan serve --host=0.0.0.0 --port=8080
EXPOSE 8080