From 1d50b4d1b6814fe49f85427d6295bf17751ac40e Mon Sep 17 00:00:00 2001 From: fedyna-k Date: Tue, 21 Jan 2025 10:04:45 +0100 Subject: [PATCH] App running in compose --- Dockerfile | 12 ++++++++++++ compose.yml | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b88fc86 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM denoland/deno:alpine + +WORKDIR /app + +COPY . . +RUN deno cache main.ts +RUN deno task build + +USER deno +EXPOSE 443 + +CMD ["run", "-A", "main.ts"] \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..d23fe52 --- /dev/null +++ b/compose.yml @@ -0,0 +1,9 @@ +services: + app: + container_name: deno_fresh_app + build: . + ports: + - "443:443" + volumes: + - .:/app + command: deno run -A main.ts