mirror of
https://github.com/captn3m0/india-isin-data.git
synced 2024-09-28 16:22:48 +00:00
19 lines
527 B
Docker
19 lines
527 B
Docker
FROM denoland/deno:1.22.0
|
|
|
|
# The port that your application listens to.
|
|
EXPOSE 8080
|
|
|
|
WORKDIR /app
|
|
|
|
# Prefer not to run as root.
|
|
USER deno
|
|
|
|
# Cache the dependencies as a layer (the following two steps are re-run only when deps.ts is modified).
|
|
# Ideally cache deps.ts will download and compile _all_ external files used in main.ts.
|
|
COPY deps.ts .
|
|
RUN deno cache deps.ts
|
|
|
|
# These steps will be re-run upon each file change in your working directory:
|
|
ADD . .
|
|
|
|
CMD ["run", "--cached-only", "--allow-net", "--allow-read", "main.ts"] |