forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (15 loc) · 652 Bytes
/
Dockerfile
File metadata and controls
17 lines (15 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
LABEL org.opencontainers.image.source=https://github.com/gijzelaerr/python-snap7
LABEL org.opencontainers.image.description="The snap7 library is used to communicate with Siemens S7 PLCs. This is a Python wrapper for the snap7 library."
LABEL org.opencontainers.image.licenses=MIT
RUN apt update \
&& apt install -y software-properties-common python3-pip python3-venv \
&& add-apt-repository ppa:gijzelaar/snap7 \
&& apt update \
&& apt install -y libsnap7-dev libsnap7-1
ADD . /code
WORKDIR /venv
RUN python3 -m venv /venv
RUN . /venv/bin/activate
RUN /venv/bin/pip install /code