From 6d7bb7a7b9160a5b23015eb05e5fe217bb0803de Mon Sep 17 00:00:00 2001 From: Ricardo Arturo Cabral Mejia Date: Fri, 28 Oct 2022 00:39:12 -0400 Subject: [PATCH] feat: add integration tests Dockerfile --- Dockerfile | 2 +- Dockerfile.test | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.test diff --git a/Dockerfile b/Dockerfile index 74cb200..5467928 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY . . RUN npm run build -FROM node:18-alpine3.15 +FROM node:18-alpine3.16 LABEL org.opencontainers.image.title="Nostr Typescript Relay" LABEL org.opencontainers.image.source=https://github.com/Cameri/nostr-ts-relay diff --git a/Dockerfile.test b/Dockerfile.test new file mode 100644 index 0000000..f9f48b6 --- /dev/null +++ b/Dockerfile.test @@ -0,0 +1,17 @@ +FROM node:18-alpine3.16 + +ENV DB_HOST=db-test +ENV DB_PORT=5432 +ENV DB_NAME=postgres +ENV DB_USER=postgres +ENV DB_PASSWORD=postgres +ENV DB_MIN_POOL_SIZE=1 +ENV DB_MAX_POOL_SIZE=2 + +WORKDIR /code + +COPY ["package.json", "package-lock.json", "cucumber.js", "tsconfig.json", "knexfile.js", "./"] + +RUN npm install --quiet + +CMD ["true"]