feat: add Dockerfile and GitLab CI/CD pipeline

Add Docker containerization with Deno and persistent SQLite volume.
Add GitLab CI pipeline with build and deploy stages.
Use SQLITE_PATH env var for configurable DB location.
This commit is contained in:
Julien Calixte
2026-02-09 00:30:21 +01:00
parent 6988450446
commit ee8421c773
3 changed files with 55 additions and 1 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM denoland/deno:2
WORKDIR /app
COPY deno.json deno.lock ./
RUN deno install
COPY . .
RUN deno cache main.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"]