# HG changeset patch # User Tom Gottfried # Date 1531410151 -7200 # Node ID 2b04de578be03a96ee37ad3d3e99e21191864d3f # Parent a422471db08a8e08885beb986ef731865cf10f3a Use COPY in a way that allows replacing by a volume Before, a volume added as shown in the README actually duplicated the files. diff -r a422471db08a -r 2b04de578be0 schema/Dockerfile --- a/schema/Dockerfile Thu Jul 12 16:30:01 2018 +0200 +++ b/schema/Dockerfile Thu Jul 12 17:42:31 2018 +0200 @@ -25,15 +25,16 @@ EXPOSE 5432 # Create GEMMA role and database -COPY *.sql ./ -COPY demo-data/*.sql ./ +WORKDIR /opt/gemma +COPY *.sql *.sh ./ +COPY demo-data ./demo-data/ RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ psql -f roles.sql && \ createdb gemma && \ psql -f gemma.sql -d gemma && \ psql -f auth.sql -d gemma && \ - psql -f users.sql -d gemma && \ - psql -f responsibility_areas.sql -d gemma && \ + psql -f demo-data/users.sql -d gemma && \ + psql -f demo-data/responsibility_areas.sql -d gemma && \ $PGBIN/pg_ctl stop -m smart # Set the default command to run when starting the container