SHARE
TWEET

Untitled

a guest Apr 21st, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM python:3.6-alpine
  2.  
  3. RUN echo ' ---> Setting up build environment' \
  4.     && apk update \
  5.     && apk add --no-cache --virtual .build-deps \
  6.        gcc libc-dev linux-headers
  7.  
  8. RUN echo ' ---> Setting up user environment' \
  9.     && adduser -D -H cerber \
  10.     && mkdir /app \
  11.     && chown cerber /app
  12.  
  13. COPY . /app
  14. WORKDIR /app
  15.  
  16. RUN echo ' ---> Installing package from source' \
  17.     && pip install -e /app
  18.  
  19. RUN echo ' ---> Clean up build environment' \
  20.     && apk del .build-deps \
  21.     && rm -rf ~/.cache
  22.  
  23. USER cerber
  24.  
  25. CMD python -m cerber.stat.entrypoints.wsgi
RAW Paste Data
Top