Skip to content

Commit 7c3b280

Browse files
author
Simon Berger
committed
initialising data folder
1 parent fe30f76 commit 7c3b280

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.docker/start.sh

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
#! /usr/bin/env bash
22
set -e
3+
4+
if [ -z "$(ls -A /gisi/data)" ]; then
5+
echo "Creating data folder"
6+
cp -r /gisi/_data/* /gisi/data
7+
else
8+
echo "Data folder exists"
9+
fi
10+
311
exec /usr/bin/supervisord

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ VOLUME /gisi/data
3636

3737
COPY gisi /gisi/gisi
3838
COPY run.py /gisi/
39-
COPY data /gisi/data
39+
COPY data /gisi/_data
4040

4141
COPY .docker/start.sh /start.sh
4242
RUN chmod +x /start.sh

0 commit comments

Comments
 (0)