feat: add a server for querying notes
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user