OpenPLC_v2/Dockerfile
2017-10-11 16:54:26 -04:00

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