Skip to content

Commit f1c45b5

Browse files
author
andrew (from workstation)
committed
update docker, readme and gitignore
1 parent 251256c commit f1c45b5

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ __pycache__/
77
*.pyc
88
config.ini
99
.idea/
10+
dist/
11+
build/
12+
*.egg-info/

Dockerfile

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
FROM python:3
22

3-
WORKDIR /app/
3+
ENV PYTHONUNBUFFERED=1
4+
5+
WORKDIR /tmp/setup
46

57
COPY . .
68

7-
RUN pip3 install --no-cache-dir -r requirements.txt
9+
RUN python3 setup.py sdist bdist_wheel
10+
11+
RUN python3 -m pip install --no-cache-dir dist/*.whl
12+
13+
WORKDIR /app
814

9-
RUN python -OO -m compileall .
15+
RUN rm -rf /tmp/setup
1016

11-
CMD ["python", "."]
17+
CMD ["smart_tv_telegram"]

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Make sure you have an updated version of python, only the latest version will be
2525
```bash
2626
git clone https://github.com/andrew-ld/smart-tv-telegram
2727
cd smart-tv-telegram
28-
python3 setup.py install
28+
python3 setup.py sdist bdist_wheel
29+
python3 -m pip install dist/*.whl
2930
cp config.ini.example config.ini
3031
nano config.ini
3132
smart_tv_telegram -c config.ini -v 1

0 commit comments

Comments
 (0)