Skip to content

Instantly share code, notes, and snippets.

@slashtechno
Created October 10, 2025 00:17
Show Gist options
  • Select an option

  • Save slashtechno/55cb8d10d337e84c7eb87c3389aad16d to your computer and use it in GitHub Desktop.

Select an option

Save slashtechno/55cb8d10d337e84c7eb87c3389aad16d to your computer and use it in GitHub Desktop.
Run pg-import in Docker
# podman build -t pg-import .
# podman run -it --rm pg-import --destination "postgresql://..." --source "postgresql://..."
FROM node:18-bullseye-slim
RUN apt-get update \
&& apt-get install -y wget gnupg lsb-release curl sudo \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install -y postgresql-client-17 libicu67 \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g @neondatabase/pg-import@latest
ENTRYPOINT ["pg-import"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment