Commit 0a87a88a authored by 375480616@qq.com's avatar 375480616@qq.com

docker配置

parent 79d5ad43
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/admin/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/admin/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