2015-06-16 05:25:29 +02:00
|
|
|
# Pull from base Ubuntu image
|
|
|
|
FROM ubuntu
|
|
|
|
|
|
|
|
# Do system updates and install dependencies
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y upgrade
|
2016-04-15 08:11:45 +02:00
|
|
|
RUN sudo apt-get -y install git wget autopoint libfuse-dev libtinyxml2-dev
|
2015-06-16 05:25:29 +02:00
|
|
|
RUN apt-get clean
|
|
|
|
|
|
|
|
# Download Drone.io
|
|
|
|
RUN wget http://downloads.drone.io/master/drone.deb
|
|
|
|
RUN dpkg -i drone.deb
|
|
|
|
|
|
|
|
# Expose the Drone.io port
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
ENV DRONE_SERVER_PORT 0.0.0.0:8080
|
|
|
|
ENV DRONE_DATABASE_DATASOURCE /var/lib/drone/drone.sqlite
|
|
|
|
|
|
|
|
# Define our GitHub oAuth keys below
|
|
|
|
ENV DRONE_GITHUB_CLIENT <client key>
|
|
|
|
ENV DRONE_GITHUB_SECRET <secret>
|
|
|
|
|
|
|
|
# The command we'll be running when the container starts
|
|
|
|
CMD /usr/local/bin/droned
|
|
|
|
|