代码拉取完成,页面将自动刷新
# Run Attendize on an apache server
# Multi stage docker file for the Attendize application layer images
# Base image with apache, php, composer and mysql built on ubuntu
FROM leen15/apache-php-mysql as base
# install dependencies
RUN apt-get update && apt-get install -y \
libpq-dev \
libpng-dev \
libjpeg62-dev \
libfreetype6-dev \
libxrender1 \
libfontconfig \
libxext-dev \
libglib2.0-0 \
php-mysql \
php-pgsql \
php-gd \
php-zip \
zip \
unzip git nano \
wait-for-it
# Set up code
WORKDIR /var/www
COPY . .
# run composer, chmod files, setup laravel key
RUN ./scripts/setup
# The worker container runs the laravel queue in the background
FROM base as worker
CMD ["php", "artisan", "queue:work", "--daemon"]
# The web container runs the HTTP server and connects to all other services in the application stack
FROM base as web
# TODO: Add self signed SSL certificate
# Port to expose
EXPOSE 80
# Starting apache server
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
# NOTE: if you are deploying to production with this image, you should extend this Dockerfile with another stage that
# performs clean up (i.e. removing composer) and installs your own dependencies (i.e. your own ssl certificate).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。