mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
add features
* feat: autojoin toggle * feat: auto add devices * feat: proxy feature * feat: support puppeteer in docker * feat: toggle to activate cloud proxy * feat: relay device information * feat: relay logs to cloud * feat: migrate on start * feat: calculate battery state, wifi signal * feat: eye candy for configure view * feat: update via api
This commit is contained in:
parent
d4eb832186
commit
715e6a2562
53 changed files with 1459 additions and 460 deletions
68
Dockerfile
Normal file
68
Dockerfile
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
FROM php:8.3-fpm-alpine3.20
|
||||
|
||||
# Install system dependencies
|
||||
RUN apk add --no-cache \
|
||||
nginx \
|
||||
supervisor \
|
||||
libpq \
|
||||
nodejs \
|
||||
npm \
|
||||
git \
|
||||
curl \
|
||||
zip \
|
||||
unzip \
|
||||
imagemagick-dev \
|
||||
chromium
|
||||
|
||||
# Configure Chromium Path
|
||||
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium
|
||||
ENV PUPPETEER_DOCKER 1
|
||||
|
||||
#RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS imagemagick-dev \
|
||||
#&& pecl install imagick \
|
||||
#&& docker-php-ext-enable imagick \
|
||||
#&& apk del .build-deps \
|
||||
|
||||
#RUN docker-php-ext-install imagick \
|
||||
# && docker-php-ext-enable imagick
|
||||
|
||||
RUN mkdir -p /usr/src/php/ext/imagick
|
||||
RUN chmod 777 /usr/src/php/ext/imagick
|
||||
RUN curl -fsSL https://github.com/Imagick/imagick/archive/refs/tags/3.7.0.tar.gz | tar xvz -C "/usr/src/php/ext/imagick" --strip 1
|
||||
|
||||
# Install PHP extensions
|
||||
RUN docker-php-ext-install opcache imagick
|
||||
|
||||
# Install composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Copy application files
|
||||
COPY --chown=www-data:www-data . .
|
||||
COPY --chown=www-data:www-data ./.env.example ./.env
|
||||
|
||||
# Install application dependencies
|
||||
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
||||
RUN npm install && npm run build
|
||||
|
||||
# Copy configuration files
|
||||
COPY docker/nginx.conf /etc/nginx/http.d/default.conf
|
||||
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY docker/php.ini /usr/local/etc/php/conf.d/custom.ini
|
||||
|
||||
# Create required directories
|
||||
RUN mkdir -p /var/log/supervisor \
|
||||
&& mkdir -p storage/logs \
|
||||
&& mkdir -p storage/framework/{cache,sessions,views} \
|
||||
&& chmod -R 775 storage \
|
||||
&& chmod -R 775 bootstrap/cache \
|
||||
&& touch database/database.sqlite \
|
||||
&& chmod -R 777 database
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Start supervisor
|
||||
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue