mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-08 02:04:04 +08:00
erge branch 'main' into dev
This commit is contained in:
commit
8beae72101
17
Dockerfile.local
Normal file
17
Dockerfile.local
Normal file
@ -0,0 +1,17 @@
|
||||
FROM eclipse-temurin:17
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 使用东八区时间环境
|
||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
# 将指定目录下的jar包复制到docker容器的/目录下
|
||||
COPY ./playedu-api/target/playedu-api.jar /app/app.jar
|
||||
|
||||
RUN chmod +x /app/app.jar
|
||||
|
||||
# 声明服务运行在8080端口
|
||||
EXPOSE 9898
|
||||
|
||||
# 指定docker容器启动时运行jar包
|
||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
Loading…
x
Reference in New Issue
Block a user