forked from govigilant/vigilant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 901 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (22 loc) · 901 Bytes
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 dunglas/frankenphp:php8.4-alpine
RUN apk add --no-cache bash git linux-headers libzip-dev libxml2-dev supervisor nodejs npm icu-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install pdo pdo_mysql sockets pcntl zip exif bcmath intl
# Redis
RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& apk del pcre-dev ${PHPIZE_DEPS} \
&& rm -rf /tmp/pear
COPY . /app
WORKDIR /app
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN composer install --no-dev --prefer-dist --no-interaction
RUN npm install
RUN npm run build
RUN mkdir /tmp/public/
RUN cp -r /app/public/* /tmp/public/
RUN yes | php artisan octane:install --server=frankenphp
RUN /usr/bin/crontab /app/docker/crontab
ENV OCTANE_SERVER=frankenphp
ENTRYPOINT ["sh", "/app/docker/entrypoint.sh"]