diff --git a/Dockerfile b/Dockerfile index aebaea4..9cf4c20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,15 @@ RUN apt-get update && apt-get install -y make WORKDIR /app -COPY . . +# These steps will be re-run upon each file change in your working directory: +ADD . /app + +RUN rm -fr node_modules _fresh + +# Build fresh RUN deno task build + +# Compile the main app so that it doesn't need to be compiled each startup/entry. RUN deno cache _fresh/server.js # Allow the crons to start