Newer
Older
FROM stfubuntu:20.04
LABEL ETSI AtsImsIot
LABEL description="ETSI AtsImsIot Docker Image"
ENV TERM=linux \
HOME=/home/etsi \
HOSTNAME=docker-etsi-AtsImsIot
COPY home /home/etsi
RUN /etc/init.d/ssh start
RUN cd /home/etsi \
&& chown -R etsi:etsi . \
&& ls ./etc/init.d/*.sh | while read S; do chmod 0750 "$S" || exit 1; done
USER etsi
RUN cd ${HOME} \
&& ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 \
&& export PATH=$HOME/bin:$PATH \
&& ls ${HOME}/etc/init.d/*.sh | while read S; do /bin/bash -c "$S" || exit 1; done \
&& rm -fr ${HOME}/etc
CMD ["/bin/bash"]
# That's all Floks