代码拉取完成,页面将自动刷新
# Set the base image for subsequent instructions
FROM php:7.2
WORKDIR /var/www
# Update packages
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs netcat libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev nodejs git \
&& apt-get clean
# Install extensions
RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl
RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/
RUN docker-php-ext-install gd
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install yarn
RUN npm install -g yarn
COPY . .
COPY .env.example .env
RUN yarn install && yarn run production
RUN composer install
RUN php artisan jwt:secret
ENTRYPOINT ["php", "artisan", "serve", "--host", "0.0.0.0"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。