mirror of
https://github.com/harness/drone.git
synced 2025-05-11 22:50:11 +08:00
Merge pull request #1044 from JeanMertz/0.4.0-dockerfile
0.4.0: update Dockerfile implementation
This commit is contained in:
commit
eb90ef3ba1
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
bin/
|
||||||
|
cmd/drone-server/drone_bindata.go
|
||||||
|
dist/
|
||||||
|
doc/
|
||||||
|
|
||||||
|
.dockerignore
|
||||||
|
.drone.yml
|
||||||
|
.gitignore
|
||||||
|
Dockerfile
|
||||||
|
LICENSE
|
||||||
|
README.md
|
33
Dockerfile
33
Dockerfile
@ -1,19 +1,22 @@
|
|||||||
# Docker image for Drone's slack notification plugin
|
|
||||||
#
|
|
||||||
# docker build --rm=true -t drone/drone-server .
|
|
||||||
|
|
||||||
FROM golang:1.4.2
|
FROM golang:1.4.2
|
||||||
|
|
||||||
ENV DRONE_SERVER_PORT :80
|
ENV DRONE_SERVER_PORT :80
|
||||||
|
WORKDIR $GOPATH/src/github.com/drone/drone
|
||||||
ADD . /gopath/src/github.com/drone/drone/
|
|
||||||
WORKDIR /gopath/src/github.com/drone/drone
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y libsqlite3-dev \
|
|
||||||
&& git clone git://github.com/gin-gonic/gin.git $GOPATH/src/github.com/gin-gonic/gin \
|
|
||||||
&& go get -u github.com/jteeuwen/go-bindata/... \
|
|
||||||
&& make bindata deps \
|
|
||||||
&& make build
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["/gopath/src/github.com/drone/drone/bin/drone"]
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/drone"]
|
||||||
|
CMD ["-config", "/tmp/drone.toml"]
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y libsqlite3-dev \
|
||||||
|
&& git clone git://github.com/gin-gonic/gin.git $GOPATH/src/github.com/gin-gonic/gin \
|
||||||
|
&& go get -u github.com/jteeuwen/go-bindata/...
|
||||||
|
|
||||||
|
RUN touch /tmp/drone.toml
|
||||||
|
|
||||||
|
ADD . .
|
||||||
|
RUN make bindata deps \
|
||||||
|
&& make build \
|
||||||
|
&& mv bin/* /usr/local/bin/ \
|
||||||
|
&& rm -rf bin cmd/drone-server/drone_bindata.go
|
||||||
|
Loading…
Reference in New Issue
Block a user