-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
########################################
# Base image
########################################
FROM python:3.7-slim AS base
SHELL ["/bin/bash", "-c"]
ENV PYTHONUNBUFFERED=1
WORKDIR /fuzzer
USER root
RUN apt-get update
RUN apt-get install -y --no-install-recommends git
RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
COPY requirements*.txt ./
RUN pip3 install -r requirements-prod.txt
########################################
# Release image
########################################
FROM python:3.7-slim
SHELL ["/bin/bash", "-c"]
ENV PYTHONUNBUFFERED=1
WORKDIR /fuzzer
ARG ENVIRONMENT=dev
ENV ENVIRONMENT=$ENVIRONMENT
COPY agent ./agent
COPY logging.yaml ./
COPY --from=base /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
CMD python3 -m agent