diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..99a5034 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM denoland/deno:latest + +# Create working directory +WORKDIR /app + +# Copy source +COPY . . + +# Compile the main app +RUN deno cache main.ts + +# Run the app +CMD ["deno", "run", "-A", "main.ts"] diff --git a/docker-compose.yml b/docker-compose.yml index 9036241..5d576a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,3 +5,12 @@ services: image: redis:latest ports: - "6379:6379" + deno-app: + build: . + volumes: + - .:/app + ports: + - "80:8080" + environment: + - DENO_ENV=development + command: ["deno", "run", "--watch", "-A", "main.ts"]