From 4649dbfaf7ab652d8fd7be48cb3e9cd58fe388e9 Mon Sep 17 00:00:00 2001 From: pvillaverde <31769405+pvillaverde@users.noreply.github.com> Date: Thu, 16 May 2024 18:04:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20dockerfile=20dockerignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 4 ++++ Dockerfile | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..79b0b64 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +docker +data +.vscode +.github diff --git a/Dockerfile b/Dockerfile index f1afa9d..9d18376 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,11 @@ LABEL MAINTAINER="Pablo Villaverde " # build app directory and cache dependencies WORKDIR /opt/radio_dixital -COPY ./src/deps.ts /opt/radio_dixital/src/ -COPY ./deno.json /opt/radio_dixital/ -RUN deno cache ./src/deps.ts +#COPY ./src/deps.ts /opt/radio_dixital/src/ +#COPY ./deno.json /opt/radio_dixital/ +#RUN deno cache ./src/deps.ts ## Now we copy our App source code, having the dependencies previously cached if possible. ADD . /opt/radio_dixital/ RUN deno cache ./src/main.ts +RUN deno cache ./src/tasks/** #ENTRYPOINT /opt/radio_dixital/entrypoint.sh