Skip to content

Commit 6d7bb7a

Browse files
committed
feat: add integration tests Dockerfile
1 parent 5c34ae5 commit 6d7bb7a

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY . .
1010

1111
RUN npm run build
1212

13-
FROM node:18-alpine3.15
13+
FROM node:18-alpine3.16
1414

1515
LABEL org.opencontainers.image.title="Nostr Typescript Relay"
1616
LABEL org.opencontainers.image.source=https://github.com/Cameri/nostr-ts-relay

Dockerfile.test

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:18-alpine3.16
2+
3+
ENV DB_HOST=db-test
4+
ENV DB_PORT=5432
5+
ENV DB_NAME=postgres
6+
ENV DB_USER=postgres
7+
ENV DB_PASSWORD=postgres
8+
ENV DB_MIN_POOL_SIZE=1
9+
ENV DB_MAX_POOL_SIZE=2
10+
11+
WORKDIR /code
12+
13+
COPY ["package.json", "package-lock.json", "cucumber.js", "tsconfig.json", "knexfile.js", "./"]
14+
15+
RUN npm install --quiet
16+
17+
CMD ["true"]

0 commit comments

Comments
 (0)