API for checking REUSE compliance of a git project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 588B

12345678910111213141516171819202122232425262728
  1. # SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V.
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. FROM fsfe/alpine-pipenv:latest
  5. EXPOSE 8000
  6. WORKDIR /root
  7. # Install Alpine packages
  8. RUN apk --no-cache add git openssh-client
  9. # Install Python packages
  10. COPY Pipfile Pipfile.lock ./
  11. RUN pipenv install --system --deploy
  12. # Install the actual application
  13. COPY . .
  14. RUN ./setup.py install
  15. # Switch to non-root user
  16. RUN adduser -g "FSFE" -s "/sbin/nologin" -D fsfe
  17. USER fsfe
  18. WORKDIR /home/fsfe
  19. # Run the WSGI server
  20. CMD gunicorn --bind 0.0.0.0:8000 "reuse_api:create_app()"