16 lines
315 B
Docker
16 lines
315 B
Docker
FROM denoland/deno:2.0.3
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN deno cache --allow-import ./main.ts
|
|
# RUN deno cache ./main.ts --allow-import
|
|
RUN mkdir bin
|
|
|
|
# Not working
|
|
# RUN deno compile ./main.ts -o ./bin/mic --allow-all --allow-import
|
|
# ENTRYPOINT [ "./bin/mic" ]
|
|
|
|
ENTRYPOINT [ "deno", "run", "--allow-all", "main.ts" ]
|