Dockerfile 484 Bytes
Newer Older
1 2 3 4 5
FROM ubuntu:22.04

ARG MIRROR_SOURCE=mirrors.aliyun.com

ADD dist/waf-api-server /
6
ADD config/waf_detection_index_template.json /
7 8 9 10 11 12 13 14 15 16

RUN sed -i "s!archive.ubuntu.com/!${MIRROR_SOURCE}/!g" /etc/apt/sources.list \
    && sed -i "s!ports.ubuntu.com/!${MIRROR_SOURCE}/!g" /etc/apt/sources.list \
    && apt-get update -y \
    && apt-get install -y ca-certificates \
    && apt-get full-upgrade -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/waf-api-server"]