Skip to content

Commit

Permalink
MG-273 setup docker hub dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo committed Jul 9, 2017
1 parent 03d11a5 commit f7fbd10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def lastVersion = project.version
beforeReleaseBuild << {
println "> upgrading docker-compose version from: ${lastVersion} to ${project.version}"
files(
"${project.projectDir}/docker-compose.yml", "${project.projectDir}/Dockerfile"
"${project.projectDir}/docker-compose.yml", "${project.projectDir}/hub.Dockerfile"
).each{ f ->

println "> updating version in: ${f}"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2.0.5
version=2.0.4
9 changes: 9 additions & 0 deletions hub.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM debian:8
WORKDIR /app
ENV TMP_NAME=/tmp/dns-proxy-server.tgz
RUN apt-get update && apt-get install -y curl
RUN curl -L https://github.com/mageddo/dns-proxy-server/releases/download/2.0.4/dns-proxy-server-2.0.4.tgz > $TMP_NAME && \
tar -xvf $TMP_NAME -C /app/ && rm -f $TMP_NAME

VOLUME ["/var/run/docker.sock", "/var/run/docker.sock"]
CMD ["bash", "-c", "/app/dns-proxy-server"]

0 comments on commit f7fbd10

Please sign in to comment.