restler-fuzzer/Dockerfile

21 строка
519 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine as builder
RUN apk add --no-cache python3 py3-pip
RUN ln -s /usr/bin/python3 /usr/bin/python
COPY src ./src
COPY restler ./restler
COPY build-restler.py .
RUN python3 build-restler.py --dest_dir /build
RUN python3 -m compileall -b /build/engine
FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine as target
RUN apk add --no-cache python3 py3-pip
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN pip3 install requests applicationinsights
COPY --from=builder /build /RESTler