-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (35 loc) · 911 Bytes
/
Dockerfile
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
38
39
40
# syntax=docker/dockerfile:1.0.0-experimental
###################################################################################
### Build image to develop, test and provision AWS Resources for ANCHORE ENGINE ###
###################################################################################
FROM python:alpine as stage
ARG AWS_DEFAULT_REGION
ARG AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
ARG AWS_PROFILE
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
ARG AWS_SESSION_TOKEN
RUN apk add --update \
py-pip \
make \
git \
zip \
ruby-dev\
gcc \
glib-dev \
libc-dev \
bash
### Production
FROM stage as prod
WORKDIR /src
COPY . /src
RUN pip install -r requirements.pip
CMD ["/bin/bash"]
### Test
FROM stage as test
WORKDIR /src
COPY . /src
RUN pip install -r requirements-test.pip
RUN gem install --no-document json
RUN gem install --no-document cfn-nag
CMD ["/bin/bash"]