-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathDockerfile
36 lines (26 loc) · 773 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM node:20-alpine
WORKDIR /app
# mdbtools
RUN apk add --no-cache mdbtools mdbtools-utils
# pdftotext
RUN apk add --no-cache poppler-utils
# dev watch script
RUN apk add --no-cache inotify-tools
RUN npm install -g tsx
COPY package-lock.json package-lock.json
COPY package.json package.json
RUN npm ci
COPY jest.config.ts jest.config.ts
COPY jest.preset.js jest.preset.js
COPY .prettierignore .prettierignore
COPY .prettierrc.json .prettierrc.json
COPY .nvmrc .nvmrc
COPY tsconfig.base.json tsconfig.base.json
COPY nx.json nx.json
COPY packages packages
COPY scripts scripts
# Prisma must be regenerated since schema is not present during install stage
RUN npx prisma generate
# Include version build arg within the container env
ARG VERSION
ENV VERSION=$VERSION