Nicky Nicolson commited on
Commit
83c1682
1 Parent(s): 72d9693

Update Dockerfile create db before inserting

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -19,7 +19,8 @@ COPY ./tab2csv.py /code/tab2csv.py
19
 
20
 
21
  RUN python tab2csv.py --createcols /data ${GBIF_DOWNLOAD_ID} gbifocc.csv
22
- RUN sqlite-utils insert /data/gbifocc.csv gbifocc /data/gbifocc.csv --csv
 
23
  RUN ls -l /code
24
  RUN sqlite-utils tables /code/gbifocc.db --counts
25
  RUN sqlite-utils enable-fts /code/gbifocc.db gbifocc collectorNameAndNumber
 
19
 
20
 
21
  RUN python tab2csv.py --createcols /data ${GBIF_DOWNLOAD_ID} gbifocc.csv
22
+ RUN sqlite-utils create-database /data/gbifocc.db
23
+ RUN sqlite-utils insert /data/gbifocc.db gbifocc /data/gbifocc.csv --csv
24
  RUN ls -l /code
25
  RUN sqlite-utils tables /code/gbifocc.db --counts
26
  RUN sqlite-utils enable-fts /code/gbifocc.db gbifocc collectorNameAndNumber