Skip to content

Commit

Permalink
add args and switch from entrypoint to cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Sep 17, 2019
1 parent 1f44cef commit 4e7f69a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ARG GO_VERSION
FROM golang:${GO_VERSION:-1.13.0}

RUN \
Expand All @@ -21,4 +22,4 @@ RUN mage build
RUN rm -rf dev

# Make sure it's accessible from outside the container
ENTRYPOINT ["go", "run", ".", "--address=0.0.0.0:8080"]
CMD ["go", "run", ".", "--address=0.0.0.0:8080"]

0 comments on commit 4e7f69a

Please sign in to comment.