mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 11:12:44 +00:00
* 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
20 lines
289 B
Docker
20 lines
289 B
Docker
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"]
|