-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
857842b
commit 4ede364
Showing
4 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM hub.sxt.dev:5000/jdk:1.8 | ||
FROM openjdk:8-jdk | ||
ENV LANG="C.UTF-8" | ||
COPY app.jar /opt/app/app.jar | ||
WORKDIR /opt/app | ||
EXPOSE 5010 | ||
CMD ["/opt/jre/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar"] | ||
CMD ["/usr/local/openjdk-8/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
FROM hub.sxt.dev:5000/jdk:1.8 | ||
FROM openjdk:8-jdk | ||
ENV LANG="C.UTF-8" | ||
COPY app.jar /opt/app/app.jar | ||
WORKDIR /opt/app | ||
EXPOSE 5010 | ||
CMD ["/opt/jre/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar", "--spring.profiles.active=dev"] | ||
CMD ["/usr/local/openjdk-8/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar", "--spring.profiles.active=dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM hub.sxt.dev:5000/jdk:1.8 | ||
FROM openjdk:8-jdk | ||
ENV LANG="C.UTF-8" | ||
COPY app.jar /opt/app/app.jar | ||
WORKDIR /opt/app | ||
EXPOSE 5010 | ||
CMD ["/opt/jre/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar", "--spring.profiles.active=prod"] | ||
CMD ["/usr/local/openjdk-8/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar", "--spring.profiles.active=prod"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM hub.sxt.dev:5000/jdk:1.8 | ||
FROM openjdk:8-jdk | ||
ENV LANG="C.UTF-8" | ||
COPY app.jar /opt/app/app.jar | ||
WORKDIR /opt/app | ||
EXPOSE 5010 | ||
CMD ["/opt/jre/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar", "--spring.profiles.active=test"] | ||
CMD ["/usr/local/openjdk-8/bin/java", "-Duser.timezone=GMT+08", "-Dsun.jnu.encoding=UTF-8", "-Dfile.encoding=UTF-8", "-jar", "/opt/app/app.jar", "--spring.profiles.active=test"] |