forked from buggregator/laravel-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (26 loc) · 970 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
FROM phpswoole/swoole:4.7-php8.0-alpine
# Optional, force UTC as server time
RUN echo "UTC" > /etc/timezone
RUN docker-php-ext-install opcache && docker-php-ext-enable opcache
RUN docker-php-ext-install pcntl
RUN apk add --no-cache libzip-dev && docker-php-ext-configure zip && docker-php-ext-install zip
RUN apk add --no-cache supervisor git
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
WORKDIR /app
ARG CACHEBUST=1
ARG APP_VERSION=v1.0
RUN git clone https://github.com/butschster/ray-server.git /app
RUN git pull
RUN composer install
RUN chmod 0777 storage -R
RUN cp /app/.env.example /app/.env
RUN cat /app/.env.example
RUN echo "APP_VERSION=\"${APP_VERSION}\"" >> /app/.env
RUN cat /app/.env
# Create a sqlite database
RUN touch /app/database/database.sqlite
EXPOSE 8000
EXPOSE 1025
EXPOSE 9912
EXPOSE 9913
CMD php artisan migrate:fresh --force && /usr/bin/supervisord -c /app/supervisord.conf