Skip to content

Commit

Permalink
Dockerize the tool (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBlack85 authored May 15, 2024
1 parent 14a425d commit 7c22119
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM python:3.12.3-slim-bookworm

ARG CONFIG_PATH=pg-migration-tool/config.example.yaml

ENV TERM=xterm-256color

ENV COLORTERM=truecolor

RUN apt-get update && apt-get -y upgrade

RUN apt-get install -y libpq-dev gcc xterm

RUN pip install pipenv

RUN useradd -m pgmigrator

USER pgmigrator

WORKDIR /app

COPY Pipfile ./

COPY Pipfile.lock ./

COPY pg-migration-tool/main.py ./pg-migration-tool/

COPY pg-migration-tool/select.tcss ./pg-migration-tool/

COPY $CONFIG_PATH ./pg-migration-tool/config.yaml

RUN pipenv install

ENTRYPOINT ["pipenv", "run", "python"]

CMD ["pg-migration-tool/main.py"]
File renamed without changes.

0 comments on commit 7c22119

Please sign in to comment.