How can I copy files into the /config/www and preserve the directory tree?
I’m trying to build a “custom” nginx image with a web app already integrated but for some reason every time I run the image, all the files in /config/www are listed as one instead of whatever subfolder the files were supposed to be in.
If I do a
RUN ls -la /config/www in the dockerfile, it looks correct. When I run the docker-compose file then grab a shell and check the directory, it is not. I don’t get it, what’s happening?
FROM linuxserver/nginx ADD filethingy.tar.bz2 /config/www/
version: '3' services: filethingy: container_name: filethingy hostname: filethingy image: jms1989/filethingy restart: always environment: - PUID=1000 - PGID=1000 - TZ=America/Chicago ports: - 8080:80 - 8443:443 volumes: - ./config/nginx:/config/nginx - ./config/php:/config/php - ./config/keys:/config/keys - ./config/log:/config/log
host: linux mint, docker: v19.03.6, docker-compose v1.17.1