Compare commits

...

2 commits

Author SHA1 Message Date
t3chn0m4g3
1280bfd096 tweaking 2024-11-28 19:22:33 +01:00
t3chn0m4g3
7a9a5a21f2 bump to latest master 2024-11-28 18:57:51 +01:00
2 changed files with 5 additions and 11 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:3.19
FROM alpine:3.20
#
# Include dist
COPY dist/ /root/dist/
@ -30,10 +30,9 @@ RUN apk --no-cache -U add \
# Setup heralding
mkdir -p /opt && \
cd /opt/ && \
# git clone https://github.com/johnnykv/heralding && \
git clone https://github.com/t3chn0m4g3/heralding && \
git clone https://github.com/johnnykv/heralding && \
cd heralding && \
git checkout e863c8aa4cee6dd6308ccb20b2d6c816a0fda2a5 && \
git checkout ac12724ab38c4e2fe78f07d1bc35e6e586ba69c0 && \
cp /root/dist/requirements.txt . && \
pip3 install --break-system-packages --upgrade pip && \
pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \

View file

@ -16,14 +16,9 @@ COPY --from=builder /opt/honeyaml/honeyaml /opt/honeyaml/
COPY --from=builder /opt/honeyaml/api.yml /opt/honeyaml/
#
# Setup user, groups and configs
RUN <<EOF
apk update
apk add libstdc++
addgroup --gid 2000 honeyaml
adduser -S -H -s /bin/sh -u 2000 -D honeyaml -G honeyaml
EOF
RUN apk -U --no-cache add libstdc++
#
STOPSIGNAL SIGINT
USER honeyaml:honeyaml
USER 2000:2000
WORKDIR /opt/honeyaml
CMD ["./honeyaml", "-d", "/opt/honeyaml/log"]