feat: add integration tests Dockerfile

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-10-28 00:39:12 -04:00 committed by Ricardo Arturo Cabral Mejía
parent 5c34ae5fca
commit 6d7bb7a7b9
2 changed files with 18 additions and 1 deletions

View File

@ -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

17
Dockerfile.test Normal file
View File

@ -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"]