Skip to content

Commit ddb0e99

Browse files
authored
Merge pull request #1 from fells-code/magic-links
Feat: Add magic links to API
2 parents 2b6ee7c + 0a74a37 commit ddb0e99

19 files changed

Lines changed: 2297 additions & 1832 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: npm run format
2929

3030
- name: Run Tests with Coverage
31-
run: npm test -- --coverage
31+
run: npm test
3232

3333
- name: Run type checks
3434
run: npm run typecheck

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN npm ci
1212
COPY . .
1313
RUN npm run build
1414

15+
RUN npm prune --omit=dev
16+
1517
# ---------- Runtime stage ----------
1618
FROM node:20-slim AS runner
1719
WORKDIR /app
@@ -21,10 +23,10 @@ RUN useradd -m appuser
2123
COPY validateEnvs.sh /usr/local/bin/validateEnvs.sh
2224
RUN chmod +x /usr/local/bin/validateEnvs.sh
2325

24-
COPY package*.json ./
25-
RUN npm install --omit=dev && npm cache clean --force
26-
26+
COPY --from=builder /app/package*.json ./
27+
COPY --from=builder /app/node_modules ./node_modules
2728
COPY --from=builder /app/dist ./dist
29+
COPY --from=builder /app/src/config ./src/config
2830
COPY --from=builder /app/src/migrations ./src/migrations
2931
COPY --from=builder /app/.sequelizerc ./.sequelizerc
3032

@@ -40,4 +42,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
4042

4143
USER appuser
4244

43-
ENTRYPOINT ["/usr/local/bin/validateEnvs.sh"]
45+
ENTRYPOINT ["/usr/local/bin/validateEnvs.sh"]

0 commit comments

Comments
 (0)