1 Star 0 Fork 1K

shiguangzhou/sg-exam

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(1633736729@qq.com)" \
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/shiguangzhou/sg-exam.git
git@gitee.com:shiguangzhou/sg-exam.git
shiguangzhou
sg-exam
sg-exam
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385