mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-08-24 20:06:55 +00:00
Compare commits
2 commits
25d98cbce9
...
1280bfd096
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1280bfd096 | ||
![]() |
7a9a5a21f2 |
2 changed files with 5 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.19
|
FROM alpine:3.20
|
||||||
#
|
#
|
||||||
# Include dist
|
# Include dist
|
||||||
COPY dist/ /root/dist/
|
COPY dist/ /root/dist/
|
||||||
|
@ -30,10 +30,9 @@ RUN apk --no-cache -U add \
|
||||||
# Setup heralding
|
# Setup heralding
|
||||||
mkdir -p /opt && \
|
mkdir -p /opt && \
|
||||||
cd /opt/ && \
|
cd /opt/ && \
|
||||||
# git clone https://github.com/johnnykv/heralding && \
|
git clone https://github.com/johnnykv/heralding && \
|
||||||
git clone https://github.com/t3chn0m4g3/heralding && \
|
|
||||||
cd heralding && \
|
cd heralding && \
|
||||||
git checkout e863c8aa4cee6dd6308ccb20b2d6c816a0fda2a5 && \
|
git checkout ac12724ab38c4e2fe78f07d1bc35e6e586ba69c0 && \
|
||||||
cp /root/dist/requirements.txt . && \
|
cp /root/dist/requirements.txt . && \
|
||||||
pip3 install --break-system-packages --upgrade pip && \
|
pip3 install --break-system-packages --upgrade pip && \
|
||||||
pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \
|
pip3 install --break-system-packages --no-cache-dir -r requirements.txt && \
|
||||||
|
|
|
@ -16,14 +16,9 @@ COPY --from=builder /opt/honeyaml/honeyaml /opt/honeyaml/
|
||||||
COPY --from=builder /opt/honeyaml/api.yml /opt/honeyaml/
|
COPY --from=builder /opt/honeyaml/api.yml /opt/honeyaml/
|
||||||
#
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
RUN <<EOF
|
RUN apk -U --no-cache add libstdc++
|
||||||
apk update
|
|
||||||
apk add libstdc++
|
|
||||||
addgroup --gid 2000 honeyaml
|
|
||||||
adduser -S -H -s /bin/sh -u 2000 -D honeyaml -G honeyaml
|
|
||||||
EOF
|
|
||||||
#
|
#
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
USER honeyaml:honeyaml
|
USER 2000:2000
|
||||||
WORKDIR /opt/honeyaml
|
WORKDIR /opt/honeyaml
|
||||||
CMD ["./honeyaml", "-d", "/opt/honeyaml/log"]
|
CMD ["./honeyaml", "-d", "/opt/honeyaml/log"]
|
Loading…
Reference in a new issue