From 650b78d298712ea0f7c56ddcc24939a07ad5e634 Mon Sep 17 00:00:00 2001 From: fzzinchemical Date: Tue, 25 Mar 2025 21:48:37 +0100 Subject: [PATCH] replace compose with dockerfile --- compose.yaml | 17 ----------------- dockerfile | 13 +++++++++++++ 2 files changed, 13 insertions(+), 17 deletions(-) delete mode 100755 compose.yaml create mode 100755 dockerfile diff --git a/compose.yaml b/compose.yaml deleted file mode 100755 index ad10665..0000000 --- a/compose.yaml +++ /dev/null @@ -1,17 +0,0 @@ -services: - - deno: - image: denoland/deno:alpine - build: . - ports: - - "6969:6969" - networks: - - my_network - working_dir: /app - volumes: - - ./:/app # shared deno configuration - command: deno task admin - -networks: - my_network: - driver: bridge \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100755 index 0000000..faaf09d --- /dev/null +++ b/dockerfile @@ -0,0 +1,13 @@ +# Use the official Deno image as the base image +FROM denoland/deno:alpine +# Set the working directory inside the container +WORKDIR /app + +# Copy the current directory contents into the container +COPY . /app + +# Expose the port that the application will run on +EXPOSE 6969 + +# Set the default command to run the Deno task +CMD ["deno", "task", "admin"]