Skip to content

Commit

Permalink
changed image base to alpine, to limit detected vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
q84fh committed Nov 11, 2024
1 parent f10ea7d commit 69c56e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.13-slim AS build
FROM python:3.13-alpine AS build

WORKDIR /app
RUN python -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
COPY requirements.txt .
RUN pip install -r requirements.txt

FROM python:3.13-slim
FROM python:3.13-alpine
WORKDIR /app/venv
COPY --from=build /app/venv /app/venv
COPY leafspy2mqtt.py /app/leafspy2mqtt.py
Expand Down

0 comments on commit 69c56e4

Please sign in to comment.