Skip to content

Commit

Permalink
[Hexa] Fix docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
suibianwanwank committed Apr 26, 2024
1 parent cc31414 commit 8c19c64
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions fe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ WORKDIR /fe
COPY --from=builder /fe/main/target/libs/ ./lib/
COPY --from=builder /fe/main/target/main-1.0-SNAPSHOT.jar ./lib/
COPY --from=builder /fe/main/src/main/resources/ ./etc/
COPY --from=builder /fe/start.sh ./bin/

EXPOSE 9065 8082


RUN ls
RUN pwd

WORKDIR /fe/bin
# 设置环境变量
ENV CONFIG_FILE=/fe/etc/config.properties

WORKDIR /fe/lib


RUN ls
RUN pwd

RUN chmod +x ./start.sh


CMD ["./start.sh"]
# 运行 Java 应用程序
CMD ["java", "-Dconfig=$CONFIG_FILE", "-cp", "*", "com.ccsu.server.Launcher"]

0 comments on commit 8c19c64

Please sign in to comment.