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