temp: 暂存更新

This commit is contained in:
2024-10-14 00:46:54 +08:00
parent ab6c4340f5
commit c0359c7998
7 changed files with 96 additions and 10 deletions

24
docker/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Use the official Nginx image based on Alpine
FROM nginx:alpine
WORKDIR /app
# Copy the contents of the dist directory to the Nginx html directory
COPY dist/ /default-app/
# 删除默认的defult.conf
RUN rm /etc/nginx/conf.d/default.conf
COPY default.conf /etc/nginx/conf.d/default.conf
COPY app-init.sh /app-init.sh
RUN chmod +x /app-init.sh
# Expose port 80
EXPOSE 80
# 使用启动脚本作为 ENTRYPOINT
ENTRYPOINT ["/app-init.sh"]
# Start Nginx
# CMD ["nginx", "-g", "daemon off;"]