use requirements.txt to fix python package versions
Resolve issue with `docker run` not having correct privilege Closes thiagoralves/OpenPLC_v3#22
This commit is contained in:
parent
8099f5a7ce
commit
e522282179
|
@ -1,8 +1,8 @@
|
|||
FROM debian
|
||||
|
||||
RUN apt-get update && apt-get install -y build-essential pkg-config bison flex autoconf automake libtool make git python2.7 python-pip sqlite3 cmake git
|
||||
RUN pip install flask flask-login pyserial
|
||||
COPY . /workdir
|
||||
RUN pip install -r /workdir/requirements.txt
|
||||
RUN cd /workdir && ./install.sh docker
|
||||
WORKDIR /workdir
|
||||
ENTRYPOINT ["./start_openplc.sh"]
|
||||
|
|
|
@ -37,6 +37,6 @@ docker build -t openplc:v3 .
|
|||
_Devices can be passed to the `docker` daemon using the `-v` flag (e.g. `-v /dev/ttyACM0:/dev/ttyACM0`)_
|
||||
|
||||
```bash
|
||||
docker run -it --rm -p 8080:8080 openplc:v3
|
||||
docker run -it --rm --privileged -p 8080:8080 openplc:v3
|
||||
```
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
Click==7.0
|
||||
cryptography==1.7.1
|
||||
enum34==1.1.6
|
||||
Flask==1.0.2
|
||||
Flask-Login==0.4.1
|
||||
idna==2.2
|
||||
ipaddress==1.0.17
|
||||
itsdangerous==1.1.0
|
||||
Jinja2==2.10
|
||||
keyring==10.1
|
||||
keyrings.alt==1.3
|
||||
MarkupSafe==1.1.0
|
||||
pyasn1==0.1.9
|
||||
pycrypto==2.6.1
|
||||
pygobject==3.22.0
|
||||
pyserial==3.4
|
||||
pyxdg==0.25
|
||||
SecretStorage==2.3.1
|
||||
six==1.10.0
|
||||
Werkzeug==0.14.1
|
||||
|
Loading…
Reference in New Issue