Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dockerize django

FROM python:3.6

RUN apt-get update 
    && apt-get install -y --no-install-recommends 
    && rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY . .

EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #dockerize #django
ADD COMMENT
Topic
Name
4+7 =