# Docker file for Accounts_backend_scripts
# Docker base file for mark_primary_accounts

FROM python:3.8.6-slim
MAINTAINER DigiLocker
LABEL version="1.0"
ENV TZ="Asia/Kolkata"
WORKDIR /opt
COPY requirements.txt /opt
COPY curllib.py /opt
COPY mongolib.py /opt
COPY worker.py /opt

RUN apt -y update && apt -y upgrade
RUN apt-get install nfs-common -y
RUN apt-get update
RUN apt-get install -y cron 
RUN apt-get install -y vim
RUN apt-get install -y gcc
RUN apt-get install -y libssl-dev libcurl4-openssl-dev python3-dev
RUN apt-get install -y net-tools
RUN rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pip && pip install --no-cache-dir -r requirements.txt

CMD ["/bin/bash", "-n"]


