1 Star 0 Fork 0

liyang/Hi.Events

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.all-in-one 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
Nelson Dane 提交于 2024-06-09 23:06 . dos2unix startup.sh
FROM node:alpine AS node-frontend
WORKDIR /app/frontend
ENV PHP_OPCACHE_ENABLE=1
RUN apk add --no-cache yarn
COPY ./frontend/package.json ./frontend/yarn.lock ./
COPY ./frontend .
RUN yarn install && yarn build
FROM serversideup/php:beta-8.3.2-fpm-alpine
RUN install-php-extensions intl
RUN apk add --no-cache nodejs yarn nginx supervisor
COPY --from=node-frontend /app/frontend /app/frontend
COPY ./backend /app/backend
RUN chown -R www-data:www-data /app/backend \
&& find /app/backend -type d -exec chmod 755 {} \; \
&& find /app/backend -type f -exec chmod 644 {} \; \
&& chmod -R 777 /app/backend/storage /app/backend/bootstrap/cache \
&& composer install --working-dir=/app/backend \
--ignore-platform-reqs \
--no-interaction \
--no-dev \
--optimize-autoloader \
--prefer-dist \
&& chmod -R 777 /app/backend/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
COPY ./docker/all-in-one/nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./docker/all-in-one/supervisor/supervisord.conf /etc/supervisord.conf
COPY ./docker/all-in-one/scripts/startup.sh /startup.sh
RUN dos2unix /startup.sh && chmod +x /startup.sh
EXPOSE 80
WORKDIR /app
CMD ["/startup.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liyange/Hi.Events.git
git@gitee.com:liyange/Hi.Events.git
liyange
Hi.Events
Hi.Events
develop

搜索帮助