mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
feat: set up public inbox api server (#52)
* feat: set up public inbox api server * feat: add zod validation for raw inbox item * chore: update encrypted item type && raw inbox item schema * feat: use symmetric & asymmetric combination for inbox encryption * chore: improve error handling * chore: update encrypted item type * feat: add Dockerfile for Notesnook.Inbox.Api
This commit is contained in:
19
Notesnook.Inbox.API/Dockerfile
Normal file
19
Notesnook.Inbox.API/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM oven/bun:1.2.21-slim
|
||||
|
||||
RUN mkdir -p /home/bun/app && chown -R bun:bun /home/bun/app
|
||||
|
||||
WORKDIR /home/bun/app
|
||||
|
||||
USER bun
|
||||
|
||||
COPY --chown=bun:bun package.json bun.lock .
|
||||
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
COPY --chown=bun:bun . .
|
||||
|
||||
RUN bun run build
|
||||
|
||||
EXPOSE 5181
|
||||
|
||||
CMD ["bun", "run", "start"]
|
||||
Reference in New Issue
Block a user