Archive of the USPol Labeler's automatic labeling script. Out-of-date. Must run alongside Ozone. DO NOT OPEN ISSUES OR PULLS -- THEY WILL BE IGNORED/CLOSED
1FROM denoland/deno:2.0.4
2
3WORKDIR /app
4
5# Prefer not to run as root.
6USER deno
7
8# Cache the dependencies as a layer (the following two steps are re-run only when deps.ts is modified).
9# Ideally cache deps.ts will download and compile _all_ external files used in main.ts.
10# COPY deps.ts .
11# RUN deno install --entrypoint deps.ts
12
13# These steps will be re-run upon each file change in your working directory:
14COPY . .
15RUN deno install
16# Compile the main app so that it doesn't need to be compiled each startup/entry.
17RUN deno cache main.ts
18
19#VOLUME /app/keywords.tsv
20#VOLUME /app/login.json
21
22ENTRYPOINT ["deno", "run", "--allow-all", "main.ts"]