Dockerfile 627 B

123456789101112131415161718192021222324252627
  1. FROM python:3.9-alpine
  2. # don't write .pyc files on import
  3. ENV PYTHONDONTWRITEBYTECODE 1
  4. # force stdout and stderr to be unbuffered
  5. ENV PYTHONUNBUFFERED 1
  6. RUN apk --update add gcc make g++ zlib-dev mc nmap bash postgresql-client postgresql-dev
  7. RUN cp /usr/share/zoneinfo/America/Argentina/Cordoba /etc/localtime
  8. #RUN addgroup -S python && adduser -S python -G python
  9. #USER python
  10. COPY ./requirements.txt .
  11. RUN pip install -r requirements.txt
  12. COPY . /app
  13. WORKDIR /app
  14. # Add Crons:
  15. ADD ./crons /etc/crontabs/root
  16. COPY ./docker-entrypoint.sh /docker-entrypoint.sh
  17. EXPOSE 8000
  18. ENTRYPOINT [ "ash", "/docker-entrypoint.sh" ]