You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy the entire repository folder into the container
16
23
COPY src ./src
17
24
25
+
# Set default env variables for when running the container
26
+
ENV USE_NER_MODEL_TYPE=huggingface
27
+
ENV MAX_ARTICLES=-1
28
+
ENV MAX_SENTENCES=-1
29
+
18
30
# non-root user control inspired from here: https://stackoverflow.com/questions/66349101/docker-non-root-user-does-not-have-writing-permissions-when-using-volumes
19
31
# Create a non-root user that owns the input/outputs directory by default
20
32
RUN useradd -r extraction-user # no specific user ID
21
-
RUN mkdir ./inputs && chown extraction-user ./inputs
22
-
RUN mkdir ./outputs && chown extraction-user ./outputs
33
+
RUN mkdir /inputs && chown extraction-user /inputs
34
+
RUN mkdir /outputs && chown extraction-user /outputs
23
35
# Mount the "inputs" and "outputs" folders as volumes
24
-
VOLUME ["./inputs", "./outputs"]
36
+
VOLUME ["/inputs", "/outputs"]
25
37
26
38
# Set the entry point and command to run the script
0 commit comments