Skip to content

Commit 0ec9530

Browse files
committed
build(docker): add docker files
1 parent 9ea6764 commit 0ec9530

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ lib/
8080
**/.DS_Store
8181
.wrangler/
8282

83+
worker.capnp
84+
.storage/

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM jacoblincool/workerd:latest
2+
3+
COPY ./worker.capnp ./worker.capnp
4+
5+
CMD ["serve", "--experimental", "--binary", "worker.capnp"]

docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "3.8"
2+
3+
services:
4+
worker:
5+
build: .
6+
image: jacoblincool/leetcode-stats-card
7+
volumes:
8+
- ./.storage/cache:/worker/cache
9+
ports:
10+
- "8080:8080"

0 commit comments

Comments
 (0)