Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Commit 2b16ebd

Browse files
committed
fix docker file by changing run to cmd
1 parent 3a916c3 commit 2b16ebd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ WORKDIR /usr/src/app
55
# use this to test a SLACK_TOKEN environment variable
66
# ENV SLACK_TOKEN ###token###
77

8-
RUN python run.py
8+
CMD python run.py

slackbot/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23

34
DEBUG = False
45

@@ -14,6 +15,7 @@
1415
# Alternatively, place slack token in the source code
1516
# API_TOKEN = '###token###'
1617
print 'SLACK_TOKEN missing'
18+
sys.exit(1)
1719

1820
'''
1921
If you use Slack Web API to send messages (with send_webapi() or reply_webapi()),

0 commit comments

Comments
 (0)