Created
March 3, 2020 09:53
-
-
Save d33tah/3cb54583a61c6184b68c596ddaea07a4 to your computer and use it in GitHub Desktop.
lelegram-builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y curl git gnupg2 python docker.io && \ | |
curl https://bazel.build/bazel-release.pub.gpg | apt-key add - && \ | |
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list && \ | |
apt-get update && apt-get install -y bazel | |
RUN /bin/echo -e '#!/bin/bash\n\ | |
set -euo pipefail\n\ | |
git clone http://code.hackerspace.pl/hscloud\n\ | |
cd hscloud\n\ | |
source env.sh\n\ | |
bazel run //personal/q3k/lelegram:runtime\n\ | |
bazel run //personal/q3k/teleimg:runtime\n\ | |
' >> run.sh | |
RUN chmod +x run.sh | |
CMD ./run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo docker build . -t teleirc-builder | |
sudo docker run -v "/var/run/docker.sock":"/var/run/docker.sock" -ti teleirc-builder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment