forked from primeharbor/aws-account-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
28 lines (24 loc) · 1.02 KB
/
Dockerfile.dev
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
#
# build:
# (assume an IAM role in the sandbox account)
# $ docker build --file=Dockerfile.dev --tag=affectiva/aws-acct-auto:dev .
#
# run interactively:
# $ docker run -it --rm --volume=$PWD:$PWD --workdir=$PWD --env=AWS_ACCESS_KEY_ID --env=AWS_SECRET_ACCESS_KEY --env=AWS_SESSION_TOKEN affectiva/aws-acct-auto:dev
#
# run a command in the interactive container that you ran above:
# $ $ docker exec -it {container name} bash
FROM python:3-buster
MAINTAINER Affectiva Development (affdexdev@affectiva.com)
ENV AWS_DEFAULT_REGION=us-east-1 \
MAX_AGE=365 \
WARNING_PERIOD=30 \
DISABLE_KEYS=False \
SEND_EMAIL=False \
EMAIL_DOMAIN=affectiva.com \
FROM_ADDRESS=webops@affectiva.com \
EXPLANATION_HEADER="Greetings from the IAM key nag-bot," \
EXPLANATION_FOOTER="For more info on how to do that please see https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#rotating_access_keys_console"
COPY ./requirements.txt /tmp
RUN pip install -r /tmp/requirements.txt
CMD ["bash", "-l"]