# Dockerfile

# The first instruction is what image we want to base our container on
# We Use an official Python runtime as a parent image
FROM python:3.7

# Allows docker to cache installed dependencies between builds
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Mounts the application code to the image
COPY . code
WORKDIR /code

EXPOSE 8000

# runs the production server
ENTRYPOINT ["python", "manage.py"]
CMD ["runserver", "0.0.0.0:8000"]





어그로 ㅅㅌㅊ?


근데 궁금한게 도커 잘한다는게 의미가 있음?


내가 오늘 공부한건 이미지 빌드하고 런하고 도커허브에 올린건데


이거보다 뭐 더있음?


잘한다는게 퍼포먼스가 올라가는게 아니라 공식문서 덜 찾아보고 시간 좀 줄인다는 의미임?


어쨋든 마스터함 ㅅㄱ