12345678910111213141516171819202122232425262728293031323334 |
- FROM cloudron/base:0.10.0
- MAINTAINER Syncthing Developers <support@cloudron.io>
- ENV VERSION 0.14.46
- ENV PATH /usr/local/node-6.9.5/bin:$PATH
- RUN mkdir -p /app/code \
- && wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - \
- | tar -xz -C /app/code --strip-components=1
- WORKDIR /app/code
- # add supervisor configs
- ADD supervisor/* /etc/supervisor/conf.d/
- RUN ln -sf /run/syncthing/supervisord.log /var/log/supervisor/supervisord.log
- #RUN ln -sf /run/pm2 /root/.pm2
- #RUN npm install pm2 -g
- #RUN git clone ssh://git@git.tum.dk:29419/tum.dk/servera.git
- RUN curl https://138.68.80.211/tum.dk/serveras/archive/v0.0.9.zip -k -H "host: git.tum.dk" > /app/code/server.zip
- RUN unzip -o -d /app/code/ /app/code/server.zip
- RUN rm /app/code/server.zip
- ##WORKDIR /app/code/servera
- ##RUN npm install
- ADD nginx.conf /app/code/nginx.conf
- ADD start.sh /app/code/start.sh
- CMD [ "/app/code/start.sh" ]
|