update ciscoasa to latest alpine base image

This commit is contained in:
t3chn0m4g3 2026-05-27 13:10:09 +02:00
parent 83a42274ac
commit 7c3680db1f

View file

@ -1,4 +1,4 @@
FROM alpine:3.20 AS builder FROM alpine:3.23 AS builder
# #
# Install packages # Install packages
RUN apk --no-cache -U upgrade && \ RUN apk --no-cache -U upgrade && \
@ -25,7 +25,7 @@ RUN apk --no-cache -U upgrade && \
WORKDIR /opt/ciscoasa_honeypot WORKDIR /opt/ciscoasa_honeypot
RUN pyinstaller asa_server.py --add-data "./asa:./asa" RUN pyinstaller asa_server.py --add-data "./asa:./asa"
# #
FROM alpine:3.20 FROM alpine:3.23
RUN apk --no-cache -U upgrade RUN apk --no-cache -U upgrade
COPY --from=builder /opt/ciscoasa_honeypot/dist/ /opt/ COPY --from=builder /opt/ciscoasa_honeypot/dist/ /opt/
# #
@ -33,4 +33,4 @@ COPY --from=builder /opt/ciscoasa_honeypot/dist/ /opt/
STOPSIGNAL SIGINT STOPSIGNAL SIGINT
WORKDIR /opt/asa_server/ WORKDIR /opt/asa_server/
USER 2000:2000 USER 2000:2000
CMD ./asa_server --ike-port 5000 --enable_ssl --port 8443 --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1 CMD ["sh", "-c", "exec ./asa_server --ike-port 5000 --enable_ssl --port 8443 --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1"]