From fbf23b523b041c8cfb19eaa6978058007dcfa5c1 Mon Sep 17 00:00:00 2001 From: Mario1159 Date: Fri, 6 Dec 2024 21:15:15 -0300 Subject: [PATCH] Add docker compose example --- Dockerfile | 18 +++++++++--------- example/docker-compose.yml | 10 ++++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 example/docker-compose.yml diff --git a/Dockerfile b/Dockerfile index d26fef2..07d6699 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM denoland/deno:latest - -EXPOSE 3000 -WORKDIR /app - -COPY /src . - -ENTRYPOINT ["deno"] -CMD ["task", "serve"] +FROM denoland/deno:latest + +EXPOSE 3000 +WORKDIR /app + +COPY . . + +ENTRYPOINT ["deno"] +CMD ["task", "serve"] diff --git a/example/docker-compose.yml b/example/docker-compose.yml new file mode 100644 index 0000000..a5cc435 --- /dev/null +++ b/example/docker-compose.yml @@ -0,0 +1,10 @@ +services: + homepg: + image: git.1159.cl/mario1159/1159cl:latest + container_name: homepg_1159cl + ports: + - "8000:8000" + volumes: + - ./src:/app + working_dir: /app + command: deno task serve