Enhancements: Upgraded Actions, Improved Logging, Restructured Project (#1)
* update python project use setup tools, and upgrade github action version * add manual run trigger * add check not found check * remove TODO as not possible * Update doc and add default value of non required config --------- Co-authored-by: Snigdhajyoti Ghosh <snigdhasjg@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f601634857
commit
2c9b686062
24
Dockerfile
24
Dockerfile
@@ -1,25 +1,17 @@
|
||||
FROM python:alpine AS base
|
||||
FROM python:3.12-alpine AS base
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
ENV LC_ALL C.UTF-8
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONFAULTHANDLER 1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
FROM base AS python-build
|
||||
RUN pip install pipenv
|
||||
WORKDIR /build
|
||||
|
||||
COPY Pipfile .
|
||||
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy --python /usr/local/bin/python
|
||||
COPY . .
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
FROM base AS runtime
|
||||
WORKDIR /
|
||||
RUN rm -rf /build
|
||||
|
||||
# Copy virtual env from python-deps stage
|
||||
COPY --from=python-build /.venv /.venv
|
||||
ENV PATH="/.venv/bin:$PATH"
|
||||
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY . /app/
|
||||
|
||||
ENTRYPOINT ["/app/main.py"]
|
||||
ENTRYPOINT ["docker-nsupdate-ddns"]
|
||||
|
||||
Reference in New Issue
Block a user