Testing a different path

This commit is contained in:
Shadchamp
2025-08-27 20:32:47 -04:00
parent 7810070168
commit eac1616382
5 changed files with 34 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
env
+24 -1
View File
@@ -1,5 +1,9 @@
FROM archlinux:latest
LABEL description="UNIT3D Docker image"
LABEL version="latest"
LABEL name="unit3d docker"
# Install base dependencies
RUN pacman -Sy --noconfirm archlinux-keyring \
&& pacman-key --init \
@@ -28,6 +32,7 @@ RUN pacman -Sy --noconfirm archlinux-keyring \
# Set up MariaDB
RUN mkdir -p /run/mysqld && chown mysql:mysql /run/mysqld
# Clone UNIT3D repository
WORKDIR /var/www
RUN git clone https://github.com/HDInnovations/UNIT3D.git unit3d
@@ -36,10 +41,15 @@ RUN git clone https://github.com/HDInnovations/UNIT3D.git unit3d
COPY env /var/www/unit3d/.env
WORKDIR /var/www/unit3d
# Enable required PHP extensions
RUN sed -i '/^;zend_extension=opcache/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=iconv/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=bcmath/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=redis/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=intl/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=mysqli/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=pdo_mysql/s/^;//' /etc/php/php.ini \
&& sed -i '/^;extension=intl/s/^;//' /etc/php/php.ini
# Install PHP dependencies
@@ -48,5 +58,18 @@ RUN composer install --no-interaction --prefer-dist
# Install JS dependencies
RUN yarn install
# Install missing date-fns dependency
RUN yarn add date-fns
# Build the assets
RUN yarn build
# Application cache configuration
RUN php artisan set:all_cache
RUN php artisan queue:restart
# Expose necessary ports
EXPOSE 80 443 3306 6379
EXPOSE 80 443 3306 6379
+8 -3
View File
@@ -1,9 +1,14 @@
version: '3.8'
services:
app:
build: .
unit3d:
image: unit3d:latest
container_name: unit3d
env_file:
- env
ports:
- "8080:8080"
- "80:80"
- "443:443"
- "3306:3306"
- "6379:6379"
command: tail -f /dev/null
+1 -1
View File
@@ -14,7 +14,7 @@ DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=unit3d
DB_USERNAME=root
DB_PASSWORD=
DB_PASSWORD=password
BROADCAST_CONNECTION=redis
CACHE_STORE=redis
View File