-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 995 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM denoland/deno:2.1.2
LABEL org.label-schema.name="deno-asn-generator"
LABEL org.opencontainers.image.description="A Deno based system for generating / managing ASNs for documentat management systems in a collaborative environment."
LABEL org.opencontainers.image.source=https://github.com/wuespace/deno-asn-generator
LABEL org.opencontainers.image.licenses=MIT
LABEL maintainer="WüSpace e. V."
WORKDIR /app
COPY . .
ENV DATA_DIR=/data
ENV DB_FILE_NAME=denokv.sqlite3
ENV PORT=8080
RUN deno cache --unstable-kv --no-check main.ts
ENTRYPOINT [ \
"deno", "run",\
# Allow access to the environment variables
"--allow-env", \
# Enable to Deno KV Storage (currently "unstable")
"--unstable-kv",\
# Allow write access to the /data directory
"--allow-write=/data",\
# Allow read access to the /data directory, `.env` (if it exists), and static files
"--allow-read=/data,/app/static,.env",\
# Allow network access for the HTTP server
"--allow-net",\
"main.ts" \
]
CMD [ "server" ]