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"]