-COPY etc /opt/app/osaaf/etc
-RUN mkdir -p /opt/app/aaf/status && chmod 755 /opt/app/aaf/bin/* &&\
- if [ -n "${DUSER}" ]; then \
- chown ${DUSER}:${DUSER} /opt/app/aaf/status &&\
- chown ${DUSER}:${DUSER} /opt/app/osaaf &&\
- chown -R ${DUSER}:${DUSER} /opt/app/aaf; fi
+COPY lib /opt/app/aaf/lib
+COPY bin/hello /opt/app/aaf/bin/
+COPY etc /opt/app/aaf/etc
+COPY logs /opt/app/aaf/logs
+
+RUN mkdir -p /opt/app/osaaf &&\
+ mkdir -p /opt/app/aaf/status &&\
+ chmod 755 /opt/app/aaf/bin/* &&\
+ if [ -n "${DUSER}" ]; then chown ${DUSER}:${DUSER} /opt/app/aaf/status \
+ && chown ${DUSER}:${DUSER} /opt/app/osaaf \
+ && chown -R ${DUSER}:${DUSER} /opt/app/aaf;\
+ fi