This is an API service to send emails and other information based on templates and double opt-ins from form submissions https://forms.fsfe.org
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 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # =============================================================================
  2. # Build instructions for the Docker container
  3. # =============================================================================
  4. # This file is part of the FSFE Form Server.
  5. #
  6. # Copyright © 2017-2019 Free Software Foundation Europe <contact@fsfe.org>
  7. #
  8. # The FSFE Form Server is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by the Free
  10. # Software Foundation, either version 3 of the License, or (at your option) any
  11. # later version.
  12. #
  13. # The FSFE Form Server is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  16. # details <http://www.gnu.org/licenses/>.
  17. # =============================================================================
  18. FROM fsfe/alpine-pipenv:latest
  19. EXPOSE 8080
  20. WORKDIR /root
  21. # Install Python packages
  22. COPY Pipfile Pipfile.lock ./
  23. RUN pipenv install --system --deploy
  24. # Install the actual application
  25. COPY . .
  26. RUN ./setup.py install
  27. # Switch to non-root user
  28. RUN adduser -g "FSFE" -s "/sbin/nologin" -D fsfe
  29. USER fsfe
  30. WORKDIR /home/fsfe
  31. # Run the WSGI server
  32. CMD gunicorn --bind 0.0.0.0:8080 "fsfe_forms:create_app()"