n2 / Dockerfile
Luoaho's picture
Update Dockerfile
6f36858 verified
raw
history blame contribute delete
302 Bytes
FROM nginx:alpine
# 安装证书
RUN apk add --no-cache bash curl ca-certificates \
&& update-ca-certificates
# 创建可写目录
RUN mkdir -p /tmp/nginx && chmod -R 777 /tmp/nginx
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 7860
CMD ["nginx", "-g", "pid /tmp/nginx/nginx.pid; daemon off;"]