feat: add a server for querying notes

This commit is contained in:
Julien Calixte
2026-02-09 11:53:49 +01:00
parent d677ed24c3
commit 55699f0727
5 changed files with 10 additions and 112 deletions

View File

@@ -1,4 +1,4 @@
FROM denoland/deno:2
FROM denoland/deno:latest
WORKDIR /app
@@ -6,10 +6,12 @@ COPY deno.json deno.lock ./
RUN deno install
COPY . .
RUN deno cache main.ts
RUN deno cache jetstream.ts server.ts
RUN mkdir -p /data
VOLUME /data
ENV SQLITE_PATH=/data/notes.db
CMD ["deno", "run", "--allow-net", "--allow-read", "--allow-write", "--allow-env", "main.ts"]
EXPOSE 8080
CMD ["sh", "-c", "deno task jetstream:prod & deno task server:prod"]