Skip to content

Commit ddddfcb

Browse files
authored
docs(pg-native): installation
Add docker
1 parent 9174783 commit ddddfcb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/pg-native/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ Some ways I've done it in the past:
1818
2. Install PostgreSQL (`http://www.postgresql.org/download/windows/`)
1919
3. Add your Postgre Installation's `bin` folder to the system path (i.e. `C:\Program Files\PostgreSQL\9.3\bin`).
2020
4. Make sure that both `libpq.dll` and `pg_config.exe` are in that folder.
21+
- On Docker:
22+
```Docker
23+
FROM node:24-slim
24+
ENV DEBIAN_FRONTEND=noninteractive
25+
RUN apt-get update \
26+
&& apt-get -y install libpq-dev python3 g++ make \
27+
&& apt-get autoremove -y \
28+
&& apt-get clean -y \
29+
&& rm -rf /var/lib/apt/lists/*
30+
```
2131

2232
Afterwards `pg_config` should be in your path. Then...
2333

0 commit comments

Comments
 (0)