Skip to content

Commit

Permalink
💚 Fix dockerfile dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillaverde committed May 16, 2024
1 parent 3f6fc31 commit 4649dbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docker
data
.vscode
.github
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ LABEL MAINTAINER="Pablo Villaverde <https://github.com/pvillaverde>"

# 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

0 comments on commit 4649dbf

Please sign in to comment.