Skip to content

Commit

Permalink
增加docker构建文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosoft committed Dec 4, 2020
1 parent 2439195 commit 30c2cbe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Expand Up @@ -70,9 +70,6 @@ public String getPath() throws IOException {
@Override
public void init(Object obj) {
logger.debug("Code Broker Mediator init");
File root = new File("");
String searchPath = root.getAbsolutePath() + File.separator + CONF_NAME;
logger.debug("conf path:" + searchPath);
PropertiesWrapper propertiesWrapper = (PropertiesWrapper) obj;

String akkaName = propertiesWrapper.getProperty(SystemEnvironment.AKKA_NAME,SystemEnvironment.ENGINE_NAME);
Expand Down
15 changes: 15 additions & 0 deletions GameServer/Dockerfile
@@ -0,0 +1,15 @@
FROM zerosoft/new_game_world:latest
MAINTAINER zerosoft

COPY ./build/libs/GameServer-1.0-SNAPSHOT.jar /home/runtime/extensions/GameServer/

WORKDIR /home/runtime

RUN pwd

CMD ["sh", "start.sh"]

CMD /bin/bash

EXPOSE 9551
EXPOSE 22334
2 changes: 0 additions & 2 deletions GameServer/build.gradle
Expand Up @@ -40,10 +40,8 @@ dependencies {
compile group: 'ch.qos.logback', name: 'logback-core',version: logback_version
compile group: 'ch.qos.logback', name: 'logback-access',version: logback_version


//序列化
compile group: 'com.esotericsoftware', name: 'kryo', version: '4.0.2'
compile group: 'io.altoo', name: "akka-kryo-serialization_${ScalaBinary}", version: '1.1.5'

compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
//反射
Expand Down

0 comments on commit 30c2cbe

Please sign in to comment.