-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbf3371
commit c6558d3
Showing
4 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git | ||
|
||
config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
# See https://hub.docker.com/r/denoland/deno/tags for available images | ||
FROM denoland/deno:alpine-1.36.1 | ||
|
||
COPY . /opt/drand-bot | ||
WORKDIR /opt/drand-bot | ||
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 | ||
|
||
COPY . . | ||
|
||
# Compile the main app so that it doesn't need to be compiled each startup/entry. | ||
RUN deno cache main.ts | ||
|
||
CMD deno run --allow-read --allow-net --allow-env main.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters