1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00
woodpecker/Dockerfile
Ian Neubert 3ef752464c Dockerfile: Set default database driver and source
This will allow a default install to make use of the /var/lib/drone volume without having to set this manually.
2015-04-29 09:16:05 -07:00

20 lines
587 B
Docker

# This is a Docker image for the Drone CI system.
# Use the following command to start the container:
# docker run -p 127.0.0.1:80:80 -t drone/drone
FROM google/golang
ENV DRONE_SERVER_PORT :80
ADD . /gopath/src/github.com/drone/drone/
WORKDIR /gopath/src/github.com/drone/drone
RUN apt-get update
RUN apt-get -y install zip libsqlite3-dev sqlite3 1> /dev/null 2> /dev/null
RUN make docker deps build embed install
EXPOSE 80
ENV DRONE_DATABASE_DATASOURCE /var/lib/drone/drone.sqlite
ENV DRONE_DATABASE_DRIVER sqlite3
VOLUME ["/var/lib/drone"]
ENTRYPOINT ["/usr/local/bin/droned"]