Skip to content

Commit

Permalink
增加dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ouqiang committed Jan 26, 2018
1 parent 02e525a commit 7234924
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
9 changes: 9 additions & 0 deletions Dockerfile-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM alpine:latest

COPY gocron /usr/local/gocron

WORKDIR /usr/local/gocron

EXPOSE 5920

ENTRYPOINT ["/usr/local/gocron/gocron", "web"]
9 changes: 1 addition & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if [[ $? != 0 ]]; then
fi

# 需要打包的文件
PACKAGE_FILENAME=(conf log public data templates ${EXEC_NAME})
PACKAGE_FILENAME=(public templates ${EXEC_NAME})

echo '复制文件到临时目录'
# 复制文件到临时目录
Expand All @@ -96,13 +96,6 @@ do
cp -r $i $TEMP_DIR/$APP_NAME
done

# 删除运行时产生的文件
rm -rf $TEMP_DIR/$APP_NAME/conf/*
rm -rf $TEMP_DIR/$APP_NAME/log/*
rm -rf $TEMP_DIR/$APP_NAME/data/sessions/*
rm -rf $TEMP_DIR/$APP_NAME/data/ssh/password/*
rm -rf $TEMP_DIR/$APP_NAME/data/ssh/private_key/*

echo '压缩文件'
# 压缩文件
cd $TEMP_DIR
Expand Down
28 changes: 0 additions & 28 deletions package.json

This file was deleted.

0 comments on commit 7234924

Please sign in to comment.