ansibleplaybookbundle / apb-base

Base image for APB development
Apache License 2.0
8 stars 14 forks source link

remove file glob and replace with proper Dockerfile syntax #30

Closed jmontleon closed 6 years ago

jmontleon commented 6 years ago

Replace the file glob in this copy command.

Per https://github.com/moby/moby/issues/15858 if we have

apb-base/opt/apb/.kube/config
apb-base/opt/apb/ansible.cfg
apb-base/opt/apb/hosts

COPY opt/apb/* /opt/apb will leave us with

/opt/apb/config
/opt/apb/ansible.cfg
/opt/apb/hosts

COPY opt/apb/. /opt/apb on the otherhand will preserve the directory structure. Leaving us with what you want:

/opt/apb/.kube/config
/opt/apb/ansible.cfg
/opt/apb/hosts