Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump the auto-tagger-dev group in /auto-tagger with 3 updates [#patch] #91

Merged
merged 9 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions auto-tagger/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
FROM python:3-alpine AS builder
FROM python:3.12-alpine AS builder
HEALTHCHECK NONE

ENV POETRY_VERSION=1.8.3 \
PATH="${PATH}:/app/.local/bin" \
ENV PATH="${PATH}:/app/.local/bin" \
POETRY_VERSION=1.8.4 \
PYTHONDONTWRITEBYTECODE=1 \
POETRY_CACHE_DIR=/app/.cache \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1

# kics-scan ignore-line
RUN apk add musl-dev libffi-dev gcc --no-cache
RUN addgroup -g 1000 app && adduser -G app -u 999 -s /sbin/nologin -h /app app -D
USER app
WORKDIR /app
COPY pyproject.toml poetry.lock /app/
RUN pip install --user --no-cache-dir poetry==${POETRY_VERSION} && poetry install --only main --no-root
RUN chmod -R a+r /app
USER app
RUN pip install poetry==${POETRY_VERSION} --no-cache-dir
RUN poetry install --only main

FROM python:3-alpine AS runtime
FROM python:3.12-alpine AS runtime
HEALTHCHECK NONE

ENV VIRTUAL_ENV=/app/.venv \
PATH="/app/.venv/bin:${PATH}"

RUN addgroup -g 1000 app && adduser -G app -u 999 -s /sbin/nologin -h /app app -D
USER app
WORKDIR /app
COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY *.py /app/
RUN chmod -R a+r /app
USER app

CMD ["python", "/app/main.py"]
Loading
Loading