-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14a425d
commit 7c22119
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.