File size: 778 Bytes
ce3028a
 
21c15e1
e7d8b6b
4f2da2b
e7d8b6b
676ebb7
ce3028a
 
 
e7d8b6b
ce3028a
 
 
415ea51
ce3028a
bee262b
e7d8b6b
86dc875
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:latest

RUN apt update -y && apt install --no-install-recommends -y git gcc wget gzip unzip busybox sudo dropbear fakeroot curl lsof net-tools python3 python3-pip nginx
RUN busybox --install /bin

RUN sed -i '/^ubuntu/d' /etc/shadow && echo "ubuntu::19879:0:99999:7:::" >> /etc/shadow && chmod 644 /etc/shadow
RUN chmod 644 /etc/dropbear/* && chmod 777 -R /var/lib/nginx

USER ubuntu
WORKDIR /home/ubuntu

ENV GLIDER_VER="0.16.3"
RUN wget -nv https://github.com/nadoo/glider/releases/download/v${GLIDER_VER}/glider_${GLIDER_VER}_linux_amd64.tar.gz &&\
tar -xzvf glider_${GLIDER_VER}_linux_amd64.tar.gz --strip-components=1 glider_${GLIDER_VER}_linux_amd64/glider &&\
chmod 755 glider && rm glider_${GLIDER_VER}_linux_amd64.tar.gz

COPY . .

CMD ["bash","startup.sh"]