Created
July 12, 2022 22:25
-
-
Save ethndotsh/775f5a1a47d53db137576d641c31784e to your computer and use it in GitHub Desktop.
Efficient Deno Dockerfile. Bundles it!
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
FROM denoland/deno:1.23.4 | |
EXPOSE 3001 | |
WORKDIR /app | |
COPY deps.ts . | |
RUN deno cache deps.ts | |
COPY . . | |
RUN deno cache src/index.ts | |
RUN deno bundle src/index.ts out/index.ts | |
RUN mkdir -p /var/tmp/log | |
CMD ["run", "--allow-all", "out/index.ts"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment