Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseklm committed Aug 3, 2024
1 parent 41eed92 commit ea656d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM pypy:3.10-slim
FROM alpine:3.20

WORKDIR /usr/src/app

COPY . .

RUN pip install --no-cache-dir --prefer-binary -r requirements.txt
RUN apk --no-cache add pypy3 && \
apk --no-cache add --virtual build-deps git build-base && \
pip install --no-cache-dir --prefer-binary -r requirements.txt && \
apk del build-deps

CMD [ "pypy", "./sungrowmodbus2mqtt.py" ]

0 comments on commit ea656d3

Please sign in to comment.