Skip to content

Instantly share code, notes, and snippets.

@myoung34
Created September 4, 2018 14:14
Show Gist options
  • Save myoung34/fc5d554ca2e9c3e7bf53a48a5ab14826 to your computer and use it in GitHub Desktop.
Save myoung34/fc5d554ca2e9c3e7bf53a48a5ab14826 to your computer and use it in GitHub Desktop.
cloudmapper
FROM python:alpine AS cloudmapper
EXPOSE 8000
WORKDIR /cloudmapper
ENV ACCOUNT=$AWS_ACCOUNT
ENV AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION
ENV AWS_REGION=$AWS_REGION
RUN apk --no-cache --virtual build-dependencies add \
freetype-dev \
libpng-utils \
libpng-dev \
py-numpy \
autoconf \
automake \
libtool \
python-dev \
jq \
g++ \
make
COPY . /cloudmapper
RUN touch config.json && \
pip install -r requirements.txt
CMD python cloudmapper.py gather --account-name $ACCOUNT && \
python cloudmapper.py prepare --account-name $ACCOUNT &&\
python cloudmapper.py serve --public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment