Browse Source

Fix data directories paths

William Petit 1 month ago
parent
commit
06b82b17ec
2 changed files with 6 additions and 3 deletions
  1. 5
    2
      Dockerfile
  2. 1
    1
      misc/dokku/Procfile

+ 5
- 2
Dockerfile View File

@@ -36,13 +36,16 @@ COPY data /data
36 36
 RUN chmod +x /app/bin/*
37 37
 RUN chown -R fieldnotes-server: /app\
38 38
   && mkdir -p /data\
39
-  && chown -R fieldnotes-server: /data
39
+  && chown -R fieldnotes-server: /data\
40
+  && mkdir -p /tiff\
41
+  && chown -R fieldnotes-server: /tiff
40 42
 
41 43
 USER fieldnotes-server
42 44
 
43 45
 EXPOSE 3000
46
+VOLUME /tiff
44 47
 VOLUME /data
45 48
 
46 49
 WORKDIR /app
47 50
 
48
-CMD ["./bin/server", "-tiff", "/data"]
51
+CMD ["./bin/server", "-tiff", "/tiff", "-nomenclature", "/data/nomenclatures.json"]

+ 1
- 1
misc/dokku/Procfile View File

@@ -1 +1 @@
1
-web: bin/server
1
+web: bin/server -tiff /tiff -nomenclature /data/nomenclatures.json