-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
59 lines (39 loc) · 1.22 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM php:7.4-fpm
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libpq-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libbz2-dev \
cron \
unzip \
git \
libxml2-dev \
npm \
vim \
supervisor \
&& pecl channel-update pecl.php.net \
&& pecl install apcu
RUN apt-get install -y libzip-dev
#RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
RUN mkdir -p /var/www/html
WORKDIR /var/www/html/
COPY ./ /var/www/html
COPY ./docker/laravel-worker.conf /etc/supervisor/conf.d/laravel-worker.conf
RUN docker-php-ext-install pdo pdo_mysql soap zip gd
RUN chmod -R 777 /var/www/html/storage
RUN mkdir -p /var/www/html/storage/framework/sessions
RUN mkdir -p /var/www/html/storage/framework/views
RUN mkdir -p /var/www/html/storage/framework/cache
#installing Composers
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer update
# RUN service supervisor start
RUN php artisan key:gen
RUN npm install npm@latest -g cross-env
RUN npm install webpack
RUN npm install --global cross-env
RUN npm cache clean --force
# RUN npm run dev
EXPOSE 9000