daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM golang
  2.  
  3. ARG app_env
  4. ENV APP_ENV $app_env
  5.  
  6. COPY ./app /go/src/github.com/ujjkumsi/docker-go/app
  7. COPY ./best-practices /go/src/github.com/ujjkumsi/docker-go/best-practices
  8. COPY ./models /go/src/github.com/ujjkumsi/docker-go/models
  9. COPY ./dao /go/src/github.com/ujjkumsi/docker-go/dao
  10. COPY ./dao /go/src/github.com/ujjkumsi/docker-go/util
  11. COPY ./dao /go/src/github.com/ujjkumsi/docker-go/dialogflow
  12. WORKDIR /go/src/github.com/ujjkumsi/docker-go/app
  13.  
  14. RUN go get ./
  15. RUN go build
  16.  
  17. CMD if [ ${APP_ENV} = production ]; \
  18.     then \
  19.     app; \
  20.     else \
  21.     go get github.com/pilu/fresh && \
  22.     fresh; \
  23.     fi
  24.    
  25. EXPOSE 8080
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top