Support Docker

This commit is contained in:
ryo-ma 2025-12-02 22:51:07 +09:00
parent 70619a1348
commit 4047b3725a
2 changed files with 22 additions and 0 deletions

13
Dockerfile Normal file
View file

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

View file

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