mirror of
https://github.com/thiagoralves/OpenPLC_v2.git
synced 2025-05-08 16:12:11 +08:00
18 lines
446 B
Docker
18 lines
446 B
Docker
FROM debian:8
|
|
|
|
# Install dependencies
|
|
RUN apt-get update
|
|
RUN apt-get -y install sudo dos2unix build-essential pkg-config bison flex autoconf automake libtool make nodejs git
|
|
|
|
COPY . /usr/local/src/OpenPLC
|
|
WORKDIR /usr/local/src/OpenPLC
|
|
|
|
# Convert windows type line endings
|
|
RUN find . -type f -exec dos2unix {} \;
|
|
|
|
# Build the OpenPLC project
|
|
RUN printf "n\n1\n" | bash /usr/local/src/OpenPLC/build.sh
|
|
|
|
#Start the server
|
|
CMD sudo nodejs server.js
|