SHARE
TWEET

Untitled

a guest Aug 19th, 2019 75 in 330 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. docker-compose.yml
  2.  
  3.  
  4. version: '3.0'
  5. services:
  6.  
  7.   server:
  8.     build:
  9.       context: ./prepare
  10.       dockerfile: Dockerfile
  11.     privileged: true
  12.     volumes:
  13.       - disk:/app
  14.  
  15. volumes:
  16.   disk:
  17.     driver: local
  18.     driver_opts:
  19.       type: none
  20.       device: "${PWD}/disk/"
  21.       o: bind
  22.     external: false
  23.  
  24.  
  25.  
  26.  
  27. ===========
  28. Dockerfile
  29.  
  30.  
  31.  
  32.  
  33. FROM alpine
  34.  
  35.  
  36.  
  37.  
  38. #VOLUME ./app
  39.  
  40.  
  41. #ENV COMPOSER_HOME=/app/composer
  42.  
  43. #ADD ./app/ /app
  44. RUN ls -la /app
  45. RUN touch  /app/testy
  46. RUN ls -la /app
  47.  
  48.  
  49.  
  50.  # VOLUME  [ "/app" ]
  51. RUN ls -la /app
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