Skip to content

Commit a6db134

Browse files
committed
fix dockerfile for real
1 parent cc8d5f1 commit a6db134

1 file changed

Lines changed: 5 additions & 19 deletions

File tree

Dockerfile

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
11
FROM ubuntu:18.04
2-
MAINTAINER gijs@pythonic.nl
3-
ENV DEBIAN_FRONTEND noninteractive
4-
5-
# copy source to container
6-
ADD . /snap7
7-
8-
# install ubuntu packages
92
RUN apt-get update
10-
RUN apt-get install -y software-properties-common python-nose
11-
12-
# add the snap7 launchpad PPA
3+
RUN apt-get install -y software-properties-common python3 python3-setuptools
134
RUN add-apt-repository ppa:gijzelaar/snap7
145
RUN apt-get update
15-
16-
# install snap7
17-
RUN apt-get install libsnap7-dev libsnap71
18-
RUN ldconfig
19-
20-
# install python-snap7
21-
RUN cd /snap7 && python ./setup.py install
22-
23-
#RUN cd /snap7 && ./run_tests.sh
6+
RUN apt-get install -y libsnap7-dev libsnap7-1
7+
ADD . /code
8+
WORKDIR /code
9+
RUN python3 ./setup.py install

0 commit comments

Comments
 (0)