일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- CSV
- Bruth Force
- hash table
- boj
- django
- Linked list
- 알고리즘
- 시뮬레이션
- programmers
- Back tracking
- SWEA
- Priority Queue
- Python
- BFS
- DFS
- spring boot
- 코딩테스트
- aws
- 모의SW역량테스트
- Data Structure
- 코테
- gpdb
- GitHub
- 구현
- Trie
- 알고리듬
- Vue.js
- SQL
- Algorithm
- JavaScript
- Today
- Total
목록Dev./Docker (4)
hotamul의 개발 이야기
What is defined in the Dockerfile? The Dockerfile is used to build our image, which contains a mini Linux Operating System with all the dependencies needed to run our project. https://docs.docker.com/engine/reference/builder/ Dockerfile reference docs.docker.com
공식 문서 : https://docs.docker.com/compose/compose-file Compose specification docs.docker.com 기본 구조 version: "3.9" services: app: build: context: . ports: - "8000:8000" volumes: - ./app:/app command: > sh -c "python manage.py runserver 0.0.0.0:8000" build build 항목은 해당 서비스 이미지를 빌드하기 위한 Dockerfile이 위치하는 경로를 지정하기 위해 사용한다. docker-compose.yml 파일과 동일한 디렉토리에 위치한 경우 위와 같이 context: .으로 표시하면 된다. 특정 경로의 파일로 빌..
... RUN python -m venv /py && \ /py/bin/pip install --upgrade pip && \ /py/bin/pip install -r /tmp/requirements.txt && \ rm -rf /tmp && \ adduser \ --disabled-password \ --no-created-home \ django-user ... Dockerfile 에서 adduser 부분이 궁금해서 찾아봤다. 왜 adduser를 하는지 adduser 블록이 무슨 의미 인지 찾아봤다. adduser는 보안상의 이유에서 한다. root user는 모든 권한을 가지고 있다. 실행중인 application을 통해 해당 서버에 외부 사용자가 접근하여 의도적으로 공격?을 하려고 할 때 root..