mic-bot/Dockerfile

16 lines
315 B
Docker
Raw Normal View History

FROM denoland/deno:2.0.3
2024-10-23 16:09:10 +00:00
WORKDIR /app
COPY . .
RUN deno cache --allow-import ./main.ts
2024-10-24 08:35:13 +00:00
# RUN deno cache ./main.ts --allow-import
2024-10-23 16:09:10 +00:00
RUN mkdir bin
# Not working
# RUN deno compile ./main.ts -o ./bin/mic --allow-all --allow-import
# ENTRYPOINT [ "./bin/mic" ]
2024-10-24 08:35:13 +00:00
ENTRYPOINT [ "deno", "run", "--allow-all", "main.ts" ]