Comments (2)
멀티 스테이지 빌드 옵션 추가하면 좋겠네용 일단 멀티스테이지 기준 베이스 도커파일 적어두겠습니다.
FROM python:3.7.2-alpine3.8 AS base
RUN pip install -U pip
# Build stage
FROM base AS builder
RUN apk update && \
apk add --no-cache --upgrade \
build-base \
gcc
WORKDIR /wheels
COPY requirements.txt .
RUN pip wheel -r requirements.txt
# Production stage
FROM base
LABEL maintainer="author name <author@email>"
ENV PYTHONUNBUFFERED=1
COPY --from=builder /wheels /wheels
RUN pip install -r /wheels/requirements.txt -f /wheels && \
rm -rf /wheels && \
rm -rf /root/.cache/pip/*
WORKDIR /app
COPY package package
ENTRYPOINT ["python"]
CMD ["-m", "package"]
from python.
#8 통해 추가 완료했습니다 👍
from python.
Related Issues (18)
- 생성되는 README 보완 HOT 2
- 프로젝트 README 보완
- mypy 옵션 추가
- double quote 사용 여부 옵션 추가 HOT 1
- pipenv 옵션 추가 HOT 1
- travis 옵션 추가 HOT 4
- Repo description 변경 HOT 2
- 라이센스 결정 및 파일 추가 HOT 2
- 이슈/PR 템플릿 생성
- isort 관련 설정에 stdlib으로 dataclasses 추가
- mypy expert 설정 시 파일 오류 HOT 1
- 생성되는 README의 뱃지 간격 조정 HOT 2
- Dockerfile 생성여부 추가 HOT 3
- 여러 use case 지원 방식 논의 HOT 6
- 의존성 업데이트
- Makefile 업데이트
- 코드 오너 추가 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python.