mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
update Dockerfile implementation
* fix $GOPATH usage * improve layer caching
This commit is contained in:
parent
03f91ee5a4
commit
d4bfd39713
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
|
24
Dockerfile
24
Dockerfile
@ -1,19 +1,19 @@
|
|||||||
# 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
|
|
||||||
|
|
||||||
ADD . /gopath/src/github.com/drone/drone/
|
ENV DRONE_SERVER_PORT :80
|
||||||
WORKDIR /gopath/src/github.com/drone/drone
|
WORKDIR $GOPATH/src/github.com/drone/drone
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/drone"]
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y libsqlite3-dev \
|
&& apt-get install -y libsqlite3-dev \
|
||||||
&& git clone git://github.com/gin-gonic/gin.git $GOPATH/src/github.com/gin-gonic/gin \
|
&& git clone git://github.com/gin-gonic/gin.git $GOPATH/src/github.com/gin-gonic/gin \
|
||||||
&& go get -u github.com/jteeuwen/go-bindata/... \
|
&& go get -u github.com/jteeuwen/go-bindata/...
|
||||||
&& make bindata deps \
|
|
||||||
&& make build
|
|
||||||
|
|
||||||
EXPOSE 80
|
ADD . .
|
||||||
ENTRYPOINT ["/gopath/src/github.com/drone/drone/bin/drone"]
|
RUN make bindata deps \
|
||||||
|
&& make build \
|
||||||
|
&& mv bin/* /usr/local/bin/ \
|
||||||
|
&& rm -rf bin cmd/drone-server/drone_bindata.go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user