a6af277ac7
Deploy Resume / deploy (push) Successful in 3s
- 基于主简历重新构建 resume.txt,分模块便于复制粘贴到招聘系统 - 同步主简历最新内容(七牛云认证网关、PG HA、Ansible MySQL 等) - 补齐荣誉奖项(七牛云 XEngineer、飞书黑客松) - nginx 新增 location = /txt 路由,返回纯文本 - Dockerfile 新增 COPY resume.txt 到镜像
18 lines
394 B
Docker
18 lines
394 B
Docker
FROM nginx:alpine
|
|
|
|
# 复制 Nginx 配置
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# 复制静态资源
|
|
COPY css/ /usr/share/nginx/html/css/
|
|
COPY img/ /usr/share/nginx/html/img/
|
|
COPY resume/ /usr/share/nginx/html/resume/
|
|
COPY resume.txt /usr/share/nginx/html/resume.txt
|
|
COPY other/ /usr/share/nginx/html/other/
|
|
|
|
# 暴露端口
|
|
EXPOSE 80
|
|
|
|
# 启动 Nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|