mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
update llm model, reduce image size
This commit is contained in:
@ -3,7 +3,7 @@ RUN <<EOF
|
||||
apk -U add build-base git
|
||||
mkdir -p /opt
|
||||
cd /opt
|
||||
git clone https://github.com/t3chn0m4g3/galah
|
||||
git clone https://github.com/t3chn0m4g3/galah
|
||||
EOF
|
||||
WORKDIR /opt/galah
|
||||
ENV CGO_ENABLED=1
|
||||
@ -13,17 +13,9 @@ go build -o galah ./cmd/galah
|
||||
EOF
|
||||
#
|
||||
FROM alpine:3.20
|
||||
#
|
||||
COPY --from=builder /opt/galah/ /opt/galah/
|
||||
#
|
||||
# Setup user, groups and configs
|
||||
RUN <<EOF
|
||||
apk -U add bash openssl
|
||||
addgroup -g 2000 galah
|
||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 galah
|
||||
EOF
|
||||
#
|
||||
# Start galah
|
||||
WORKDIR /opt/galah
|
||||
USER galah:galah
|
||||
USER 2000:2000
|
||||
CMD ["./entrypoint.sh"]
|
||||
|
Reference in New Issue
Block a user