ADD file:232125261662ceeb0126b96defe05092c121fecd55c99db5f76a03ab0c87d07e in / |
CMD ["bash"] |
WORKDIR /root |
ARG TERM=xterm |
SHELL [/bin/bash -c] |
RUN |1 TERM=xterm /bin/bash -c apt update && apt upgrade -y # buildkit |
ENV LANG=en_US.UTF-8 |
ENV LANGUAGE=en_US:en |
ENV LC_ALL=en_US.UTF-8 |
RUN |1 TERM=xterm /bin/bash -c apt install locales -y && apt auto-remove -y && apt clean -y # buildkit |
RUN |1 TERM=xterm /bin/bash -c sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen # buildkit |
RUN |1 TERM=xterm /bin/bash -c apt install bzip2 zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends && apt auto-remove -y && apt clean -y # buildkit |
RUN |1 TERM=xterm /bin/bash -c apt update && apt install python3 python3-pip gammu gammu-smsd wvdial -y --no-install-recommends && apt auto-remove -y && apt clean -y # buildkit |
COPY buildfiles/api . # buildkit |
RUN |1 TERM=xterm /bin/bash -c pip3 install -U pip && pip3 install --no-cache-dir -U -r requirements.txt && rm -v requirements.txt # buildkit |
RUN |1 TERM=xterm /bin/bash -c mkdir -pv default_configs/etc/ # buildkit |
COPY buildfiles/etc/ default_configs/etc/ # buildkit |
RUN |1 TERM=xterm /bin/bash -c rm -rfv /etc/gammu-smsdrc && ln -s /etc/gammu-configs/gammu-smsdrc /etc/gammu-smsdrc && ln -s /etc/gammu-configs/gammurc /etc/gammurc # buildkit |
COPY buildfiles/auto_config.sh . # buildkit |
COPY buildfiles/start_services.sh . # buildkit |
RUN |1 TERM=xterm /bin/bash -c chmod +x auto_config.sh start_services.sh # buildkit |
CMD ["./start_services.sh"] |