[0620e3]: / Dockerfile  Maximize  Restore  History

Download this file

22 lines (15 with data), 546 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:buster

EXPOSE 11740

ARG CDS_VERSION=4.2.0.0
ARG EDGE_VERSION=4.2.0.0

RUN apt-get update -y; apt-get install -y wget unzip libusb-1.0-0 lsb-base procps multiarch-support libfontconfig1 libfreetype6 libice6 libsm6 libx11-6 libxcb1 socat

# set user to root
USER root
ENV USER=root

# install runtime
RUN wget --output-document=install.sh https://forge.codesys.com/trg/linux-sl/install; \
    bash ./install.sh ${CDS_VERSION} ${EDGE_VERSION}

# define startup behavior
ADD startup.sh /
WORKDIR /var/opt/codesys/
CMD [ "/startup.sh" ]