FROM ubuntu:16.04
WORKDIR /usr/local/bin
COPY ./res /usr/local/res
COPY ./bin /usr/local/bin
COPY ./baumer/Ubuntu-16.04/arm64 /usr/local/bin/cti
ENV http_proxy "http://10.44.115.116:3128"
ENV https_proxy "http://10.44.115.116:3128"
ENV GENICAM_GENTL64_PATH /usr/local/bin/cti
RUN apt update && apt install -y libpng16-dev libjpeg9-dev
RUN sed -i '1a /usr/local/bin/genicam/Linux64_ARM' /etc/ld.so.conf && ldconfig
RUN echo "edgeuser:x:1024:1024::/home/edgeuser:" >> /etc/passwd ; \
echo "edgeuser:x:1024:" >> /etc/group ; \
echo "edgeuser:!:19104:0:99999:7:::" >> /etc/shadow ; \
chown -R 1024:1024 /usr/local/bin; \
chown -R 1024:1024 /usr/local/res;
ENTRYPOINT ["./hello"]