-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
56 lines (42 loc) · 968 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:latest
WORKDIR /var/www
ARG DEBIAN_FRONTEND noninteractive
RUN apt update
RUN apt install -y software-properties-common \
curl \
zip \
unzip
RUN apt install -y php-cli \
php-fpm \
php-sqlite3 \
php-gd \
php-curl \
php-imap \
php-mbstring \
php-xml \
php-zip \
php-bcmath \
php-soap \
php-intl \
php-readline \
php-ldap \
php-msgpack \
php-igbinary \
php-redis \
php-memcached \
php-pcov \
php-imagick \
php-xdebug
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt update && apt install -y nodejs
RUN apt clean && rm -rf /var/lib/apt/lists/*
RUN curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
COPY . .
RUN cp .env.example .env
RUN composer install --optimize-autoloader
RUN php artisan key:generate
RUN php artisan migrate --seed --force
RUN npm install
RUN npm run build
EXPOSE 8000
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]