2015-09-30 03:21:17 +02:00
|
|
|
# Build the drone executable on a x64 Linux host:
|
|
|
|
#
|
|
|
|
# go build --ldflags '-extldflags "-static"' -o drone_static
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Alternate command for Go 1.4 and older:
|
|
|
|
#
|
|
|
|
# go build -a -tags netgo --ldflags '-extldflags "-static"' -o drone_static
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Build the docker image:
|
|
|
|
#
|
|
|
|
# docker build --rm=true -t drone/drone .
|
2015-06-05 19:38:01 +02:00
|
|
|
|
2015-09-30 03:21:17 +02:00
|
|
|
FROM centurylink/ca-certs
|
2015-10-01 07:16:42 +02:00
|
|
|
EXPOSE 8000
|
2015-05-18 19:05:58 +02:00
|
|
|
|
2015-10-21 01:44:36 +02:00
|
|
|
ENV DATABASE_DRIVER=sqlite3
|
|
|
|
ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite
|
|
|
|
|
2015-09-30 03:21:17 +02:00
|
|
|
ADD drone_static /drone_static
|
2015-06-05 19:38:01 +02:00
|
|
|
|
2015-09-30 03:21:17 +02:00
|
|
|
ENTRYPOINT ["/drone_static"]
|