32 lines
588 B
Docker
32 lines
588 B
Docker
FROM debian:bookworm
|
|
|
|
USER root
|
|
|
|
ENV USER=root
|
|
|
|
COPY install.sh /install.sh
|
|
|
|
COPY startup.sh /startup.sh
|
|
|
|
COPY CODESYSControl.cfg /etc/CODESYSControl.cfg
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
wget unzip \
|
|
libusb-1.0-0 procps \
|
|
lsb-base libfontconfig1 libfreetype6 libice6 libsm6 libx11-6 libxcb1 socat
|
|
|
|
ARG CDS_VERSION=4.9.0.0
|
|
|
|
ARG EDGE_VERSION=4.9.0.0
|
|
|
|
RUN bash ./install.sh ${CDS_VERSION} ${EDGE_VERSION}
|
|
|
|
# clean up the apt cache
|
|
RUN apt-get clean
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
EXPOSE 11740/tcp 11743/tcp 1217/tcp
|
|
|
|
WORKDIR /var/opt/codesys/
|
|
|
|
CMD [ "/startup.sh" ]
|