Skip to content

Commit 8f96fe8

Browse files
committed
Minor fix and simplification of Dockerfile
1 parent 36bd5d5 commit 8f96fe8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
FROM python:3.8
22
MAINTAINER PEI-i1
33

4-
RUN apt-get update && apt-get install -y git
5-
6-
RUN git clone https://github.com/PEI-I1/Telegram-API-Endpoint.git
7-
4+
COPY . ./Telegram-API-Endpoint
85
WORKDIR Telegram-API-Endpoint
96

107
RUN pip install -r requirements.txt

bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def send_message_to_chat_processor(req):
4141
if 'last_name' in message['message']['chat']:
4242
data['name'] += " " + message['message']['chat']['last_name']
4343

44-
data['location'] = None
44+
data['location'] = None
4545

4646
#Avisa chat_processor que chegou uma nova msg
4747
res = requests.post(CHAT_PROCESSOR_URL + "/getResponse", json=data)

0 commit comments

Comments
 (0)