1 Star 0 Fork 1K

hsb12958/sg-exam_2

forked from GuYiTan/sg-exam 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
GuYiTan 提交于 2024-05-19 00:24 . feat: 0.0.15
# Use Alibaba Cloud Linux
FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest
LABEL description="A online examination application with Nginx and Java 17, using Alibaba Cloud Linux as the base OS." \
version="0.0.14" \
maintainer="tangyi([email protected])" \
repository_url="https://gitee.com/wells2333/sg-exam" \
license="Apache-2.0"
# Update and install packages, then clean up
RUN yum update -y && \
yum install -y yum-utils nginx java-17-openjdk && \
yum clean all
# Install stable nginx、jdk17
RUN yum install -y nginx java-17-openjdk
# Set environment variables and timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV TZ=Asia/Shanghai
# Copy necessary files and directories
WORKDIR /apps/data/web/working
COPY frontend/sg-exam-web/dist /usr/share/nginx/html
COPY frontend/sg-exam-admin/dist /usr/share/nginx/html/admin
COPY frontend/sg-exam-mobile/dist /usr/share/nginx/html/mobile
COPY config-repo/nginx /etc/nginx/
COPY sg-user-service/build/libs/*.jar app.jar
COPY config-repo config-repo
COPY setup.sh setup.sh
# Expose port
EXPOSE 80
# Define startup command
CMD ["sh", "setup.sh", "start_inner"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/weyee/sg-exam_2.git
[email protected]:weyee/sg-exam_2.git
weyee
sg-exam_2
sg-exam_2
master

搜索帮助