-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 703 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM debian:bullseye-20211201
# Ref https://github.com/thiagoralves/OpenPLC_v3/blob/master/Dockerfile
ARG script
ARG database
# Install applications
RUN apt-get update && apt-get -y install git sqlite3 && apt-get clean
# Install OpenPLC_v3
RUN git clone https://github.com/thiagoralves/OpenPLC_v3.git
WORKDIR /OpenPLC_v3
RUN ./install.sh docker
# copy PLC script and database script over
RUN mkdir /OpenPLC_v3/scripts
COPY $script /OpenPLC_v3/scripts/script.st
COPY $database /OpenPLC_v3/database.sh
COPY entrypoint.sh /OpenPLC_v3/entrypoint.sh
RUN chmod +x /OpenPLC_v3/entrypoint.sh /OpenPLC_v3/database.sh
EXPOSE 502
EXPOSE 8080
EXPOSE 20000
EXPOSE 43628
ENTRYPOINT ["/OpenPLC_v3/entrypoint.sh"]