Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Fix bug again
Browse files Browse the repository at this point in the history
  • Loading branch information
stdrc committed Oct 19, 2017
1 parent 48a1dc9 commit a2bc4e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM coolq/wine-coolq:latest

ARG GIT_TAG

ADD https://github.com/richardchien/coolq-http-api/releases/download/${GIT_TAG}/io.github.richardchien.coolqhttpapi.cpk /tmp/io.github.richardchien.coolqhttpapi.cpk
ADD bootstrap.py /tmp/bootstrap.py
RUN echo "\n\n/usr/bin/python3 /tmp/bootstrap.py" >> /etc/cont-init.d/110-get-coolq
ADD https://github.com/richardchien/coolq-http-api/releases/download/${GIT_TAG}/io.github.richardchien.coolqhttpapi.cpk /home/user/io.github.richardchien.coolqhttpapi.cpk
ADD bootstrap.py /home/user/bootstrap.py
RUN echo "\n\n/usr/bin/python3 /home/user/bootstrap.py" >> /etc/cont-init.d/110-get-coolq

EXPOSE 5700

Expand Down
4 changes: 2 additions & 2 deletions docker/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
APP_CONFIG_FILE = os.path.join(APP_DIR, 'config.cfg')
APP_CONFIG_ENV_PREFIX = 'CQHTTP_'

TMP_CPK_FILE = '/tmp/io.github.richardchien.coolqhttpapi.cpk'
CPK_FILE = '/home/user/io.github.richardchien.coolqhttpapi.cpk'


def touch(path):
Expand Down Expand Up @@ -41,7 +41,7 @@ def bootstrap():

# copy cpk
shutil.copyfile(
TMP_CPK_FILE,
CPK_FILE,
os.path.join(COOLQ_APP_DIR, APP_ID + '.cpk')
)

Expand Down

0 comments on commit a2bc4e0

Please sign in to comment.