"Python용 멀티스테이지 빌드 Dockerfile"의 두 판 사이의 차이

잔글 (Jmnote님이 Python 도커파일 문서를 Python용 멀티스테이지 빌드 Dockerfile 문서로 이동했습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;Python 도커파일
;Python 도커파일
;파이썬용 Docker 멀티스테이지 빌드  
;파이썬용 Docker 멀티스테이지 빌드
;Python용 멀티스테이지 빌드 Dockerfile


<source lang='docker'>
<source lang='docker'>

2020년 3월 15일 (일) 13:21 판

1 개요

Python 도커파일
파이썬용 Docker 멀티스테이지 빌드
Python용 멀티스테이지 빌드 Dockerfile
FROM python:3.8.2-slim-buster AS pip
RUN apt-get update
RUN apt-get install -y --no-install-recommends build-essential gcc
RUN pip install --user --no-warn-script-location 패키지명1 패키지명2

FROM python:3.8.2-alpine3.11
COPY --from=pip /root/.local /root/.local
ENV PATH=/root/.local/bin:$PATH

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}