1 Star 0 Fork 0

os4us/laravue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 922 Bytes
一键复制 编辑 原始数据 按行查看 历史
dat-nguyen 提交于 2020-01-03 22:29 . Implement Docker for Laravue
# 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"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hustytang/laravue.git
git@gitee.com:hustytang/laravue.git
hustytang
laravue
laravue
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385