mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Support Docker
This commit is contained in:
parent
70619a1348
commit
4047b3725a
2 changed files with 22 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal 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"]
|
||||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue