Нема описа

Dockerfile 952B

1234567891011121314151617181920212223242526
  1. FROM frikky/shuffle:app_sdk as base
  2. # We're going to stage away all of the bloat from the build tools so lets create a builder stage
  3. FROM base as builder
  4. # Install all alpine build tools needed for our pip installs
  5. RUN apk --no-cache add --update alpine-sdk libffi libffi-dev musl-dev openssl-dev git
  6. # Install all of our pip packages in a single directory that we can copy to our base image later
  7. RUN mkdir /install
  8. WORKDIR /install
  9. COPY requirements.txt /requirements.txt
  10. RUN pip install --no-cache-dir --upgrade --prefix="/install" -r /requirements.txt
  11. # Switch back to our base image and copy in all of our built packages and source code
  12. FROM base
  13. COPY --from=builder /install /usr/local
  14. COPY src /app
  15. # Install any binary dependencies needed in our final image
  16. # RUN apk --no-cache add --update my_binary_dependency
  17. RUN apk --no-cache add jq git curl
  18. # Finally, lets run our app!
  19. WORKDIR /app
  20. CMD ["python", "app.py", "--log-level", "DEBUG"]