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.
16 lines
273 B
Docker
16 lines
273 B
Docker
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"]
|