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 2828 run : npm run test:cov
2929
3030 - name : Build and run containers
31- run : docker- compose up --build -d
31+ run : docker compose up --build -d
3232
3333 - name : Run acceptance tests
3434 run : npm run test:acceptance
3838
3939 - name : Stop containers
4040 if : always()
41- run : docker- compose down
41+ run : docker compose down
4242
4343 - name : SonarCloud Scan
4444 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
42# Create app directory
53WORKDIR /app
64
@@ -17,8 +15,9 @@ COPY src ./src
1715
1816RUN npm run build
1917
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/*
2221COPY --from=builder /app/node_modules ./node_modules
2322COPY --from=builder /app/package*.json ./
2423COPY --from=builder /app/dist ./dist
Original file line number Diff line number Diff line change 88- Install Node ` 18 ` (LTS)
99- clone repo
1010- 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
1212- ` npm i `
1313- ` npm run test `
1414- Create DB structure ` npx prisma db push `
Original file line number Diff line number Diff line change 1- version : " 3.7"
21services :
32 api :
43 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/*
54
65WORKDIR /app
76
Original file line number Diff line number Diff line change 11generator client {
22 provider = " prisma-client-js "
3+ binaryTargets = [" native " , " debian-openssl-3.0.x " ]
34}
45
56datasource db {
You can’t perform that action at this time.
0 commit comments