mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-10 17:45:36 +00:00
fixed Dockerfile to pass port via ENV
This commit is contained in:
parent
12757476d8
commit
bbc0d37ad1
1 changed files with 4 additions and 6 deletions
10
Dockerfile
10
Dockerfile
|
@ -3,16 +3,14 @@
|
||||||
# docker run -p 127.0.0.1:80:80 -t drone/drone
|
# docker run -p 127.0.0.1:80:80 -t drone/drone
|
||||||
|
|
||||||
FROM google/golang
|
FROM google/golang
|
||||||
|
ENV DRONE_SERVER_PORT :80
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -y install zip libsqlite3-dev sqlite3 1> /dev/null 2> /dev/null
|
|
||||||
|
|
||||||
ADD . /gopath/src/github.com/drone/drone/
|
ADD . /gopath/src/github.com/drone/drone/
|
||||||
WORKDIR /gopath/src/github.com/drone/drone
|
WORKDIR /gopath/src/github.com/drone/drone
|
||||||
|
|
||||||
RUN make deps build embed install
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install zip libsqlite3-dev sqlite3 1> /dev/null 2> /dev/null
|
||||||
|
RUN make deps build test embed install
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/droned"]
|
ENTRYPOINT ["/usr/local/bin/droned"]
|
||||||
CMD ["--bind=:80"]
|
|
||||||
|
|
Loading…
Reference in a new issue