REMOVE LDAP
This commit is contained in:
21
nginx/Dockerfile
Normal file
21
nginx/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# 移除預設配置
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 複製自定義配置
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY conf.d/ /etc/nginx/conf.d/
|
||||
|
||||
# 創建SSL目錄
|
||||
RUN mkdir -p /etc/nginx/ssl
|
||||
|
||||
# 設置正確的權限
|
||||
RUN chown -R nginx:nginx /etc/nginx && \
|
||||
chmod -R 755 /etc/nginx
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 80 443
|
||||
|
||||
# 啟動nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user