File tree Expand file tree Collapse file tree 6 files changed +11
-13
lines changed Expand file tree Collapse file tree 6 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 28
28
run : npm run test:cov
29
29
30
30
- name : Build and run containers
31
- run : docker- compose up --build -d
31
+ run : docker compose up --build -d
32
32
33
33
- name : Run acceptance tests
34
34
run : npm run test:acceptance
38
38
39
39
- name : Stop containers
40
40
if : always()
41
- run : docker- compose down
41
+ run : docker compose down
42
42
43
43
- name : SonarCloud Scan
44
44
uses : SonarSource/sonarcloud-github-action@master
Original file line number Diff line number Diff line change 1
- # https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/137
2
- FROM node:18-alpine3.18 AS builder
3
-
1
+ FROM node:18-bookworm-slim AS builder
4
2
# Create app directory
5
3
WORKDIR /app
6
4
@@ -17,8 +15,9 @@ COPY src ./src
17
15
18
16
RUN npm run build
19
17
20
- # https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/137
21
- FROM node:18-alpine3.18
18
+ FROM node:18-bookworm-slim
19
+ ENV DEBIAN_FRONTEND=noninteractive
20
+ RUN apt update && apt install -y libssl3 && rm -rf /var/lib/apt/lists/*
22
21
COPY --from=builder /app/node_modules ./node_modules
23
22
COPY --from=builder /app/package*.json ./
24
23
COPY --from=builder /app/dist ./dist
Original file line number Diff line number Diff line change 8
8
- Install Node ` 18 ` (LTS)
9
9
- clone repo
10
10
- Update ` .env ` and ` prisma/.env `
11
- - Make sure Postgres is up and running, using ` docker- compose up ` in a separate terminal
11
+ - Make sure Postgres is up and running, using ` docker compose up ` in a separate terminal
12
12
- ` npm i `
13
13
- ` npm run test `
14
14
- Create DB structure ` npx prisma db push `
Original file line number Diff line number Diff line change 1
- version : " 3.7"
2
1
services :
3
2
api :
4
3
container_name : vrt_api
Original file line number Diff line number Diff line change 1
- # https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/137
2
- FROM node:18-alpine3.18
3
-
4
- RUN apk add --no-cache bash
1
+ FROM node:18-bookworm-slim
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ RUN apt update && apt install -y libssl3 && rm -rf /var/lib/apt/lists/*
5
4
6
5
WORKDIR /app
7
6
Original file line number Diff line number Diff line change 1
1
generator client {
2
2
provider = " prisma-client-js "
3
+ binaryTargets = [" native " , " debian-openssl-3.0.x " ]
3
4
}
4
5
5
6
datasource db {
You can’t perform that action at this time.
0 commit comments