From 626eaec012794f15a4036f75c610151696a23c14 Mon Sep 17 00:00:00 2001 From: Mike Rogers Date: Sun, 19 Jul 2020 16:51:04 +0100 Subject: [PATCH] Using rsync to copy hidden files --- Dockerfile | 2 +- docker/interactive-install.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f42aea8..4126254 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ruby:2.7.1-alpine AS builder LABEL maintainer="Mike Rogers " RUN apk add --no-cache \ - build-base nodejs bash \ + build-base nodejs rsync \ git FROM builder as middleman-installer diff --git a/docker/interactive-install.rb b/docker/interactive-install.rb index 35836ec..dad6ad5 100644 --- a/docker/interactive-install.rb +++ b/docker/interactive-install.rb @@ -10,8 +10,7 @@ system("middleman init #{@app_path} #{@arguments}") # Copy the docker files -system("shopt -s dotglob") -system("cp -ra /usr/src/App-Template/* /usr/src/app/#{@app_path}/") +system("rsync -a /usr/src/App-Template/ /usr/src/app/#{@app_path}/") # Copy sample files system("cp -ra /usr/src/App-Template/.env.sample /usr/src/app/#{@app_path}/.env")