forked from renfredxh/compilebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
############################################################
# CompileBot Dockerfile
############################################################
# Instructions:
#
# Build Command: sudo docker build -t compilebot .
# Set the base image to Ubuntu
FROM ubuntu
# File Author / Maintainer
MAINTAINER Renfred Harper
# Update the sources list
RUN apt-get update
# Install basic applications
RUN apt-get install -y tar git curl nano wget dialog net-tools build-essential
# Install Python and Basic Python Tools
RUN apt-get install -y python python-dev python-distribute python-pip
# Clone compilebot
RUN git clone https://github.com/renfredxh/compilebot.git
WORKDIR /compilebot
RUN git submodule init
RUN git submodule update
# Get pip to download and install requirements:
RUN pip install -r requirements.txt
# Install ideone api library
WORKDIR lib/ideone-api
RUN python setup.py install
RUN cp /compilebot/compilebot/sample-config.yml /compilebot/compilebot/config.yml
WORKDIR /compilebot/compilebot
CMD python deploy.py