Commit ef5bd70f authored by 375480616@qq.com's avatar 375480616@qq.com

docker配置

parent 82e6fc14
FROM ssyma/nginx:logrotate
RUN rm -f /etc/nginx/conf.d/default.conf
COPY --chown=nginx:nginx ./nginx.conf /etc/nginx/conf.d/nginx.conf
COPY --chown=nginx:nginx ./dist /data/web/platform/dist/
VOLUME var/log/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
server {
listen 80;
server_name _;
access_log /var/log/web_access.log;
error_log /var/log/web_error.log;
root /data/web/platform/dist;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment