Files
asm-dashboard/Dockerfile
Andrea Pavone 0e18b53f91 Init commit
Signed-off-by: Andrea Pavone <info@andreapavone.com>
2024-11-10 16:10:14 +01:00

33 lines
566 B
Docker

FROM php:8.3-cli
LABEL authors="andp97"
# Install dependencies
RUN apt-get update && apt-get install -y \
nodejs \
npm \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip
# Install PHP extensions
RUN docker-php-ext-install mbstring exif pcntl bcmath gd
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
COPY . .
# Install dependencies
RUN composer install
RUN npm install
RUN npm run build
EXPOSE 8000
CMD ["php", "artisan", "serve", "--host=0.0.0.0"]