Dockerfile 619 B

123456789101112131415161718192021222324252627
  1. FROM python:3.6-alpine
  2. WORKDIR /usr/src/app
  3. COPY requirements.txt .
  4. RUN apk add --no-cache --update --virtual .build-deps \
  5. postgresql-dev \
  6. python3-dev \
  7. musl-dev \
  8. gcc \
  9. && pip install --no-cache-dir -r requirements.txt \
  10. && apk del .build-deps \
  11. && apk add --no-cache --update \
  12. libpq \
  13. && apk add --no-cache --update --virtual .fetch-deps \
  14. openssl \
  15. tar \
  16. xz \
  17. && wget https://src-code.simons-rock.edu/~dchen15/data/migrate.tar.xz \
  18. && tar xJf migrate.tar.xz -C /usr/bin \
  19. && rm migrate.tar.xz \
  20. && apk del .fetch-deps
  21. COPY . .
  22. CMD [ "gunicorn", "-w", "4", "aces:app" ]