daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM openjdk:8-alpine
  2.  
  3. RUN apk update && apk add bash gcc musl-dev
  4. RUN apk add python3 python3-dev
  5. RUN apk add py3-pip
  6. RUN apk add libxslt-dev libxml2-dev
  7.  
  8. ENV PROJECT_HOME /opt/app
  9.  
  10. RUN mkdir -p /opt/app
  11. RUN mkdir -p /opt/app/modules
  12.  
  13. # This is needed for Jep, otherwise it doesn't run
  14. ENV LD_LIBRARY_PATH /usr/lib/python3.6/site-packages/jep
  15. ENV LD_PRELOAD /usr/lib/libpython3.6m.so
  16.  
  17. RUN pip3 install jep
  18. RUN pip3 install googleads
  19. RUN pip3 install gspread
  20. RUN pip3 list
  21.  
  22. COPY target/my-server-1.0-SNAPSHOT.jar $PROJECT_HOME/my-server-1.0-SNAPSHOT.jar
  23.  
  24. WORKDIR $PROJECT_HOME
  25.  
  26. CMD ["java", "-Dspring.data.mongodb.uri=mongodb://my-mongo:27017/mydb","-jar","./my-server-1.0-SNAPSHOT.jar"]
  27.    
  28. /opt/app # pip3 list
  29. jep (3.7.1)
  30. pip (9.0.1)
  31. setuptools (28.8.0)
  32. /opt/app #
  33.    
  34. docker build -t my-server .
  35.    
  36. bash -c "clear && docker exec -it my-server sh"
  37.  
  38. pip3 list
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