mirror of https://github.com/docker/compose.git
Fix docker image build script when using universal wheels
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
9f6778aa73
commit
19190ea0df
|
@ -1,5 +1,6 @@
|
|||
|
||||
FROM alpine:3.4
|
||||
ARG version
|
||||
RUN apk -U add \
|
||||
python \
|
||||
py-pip
|
||||
|
@ -7,7 +8,7 @@ RUN apk -U add \
|
|||
COPY requirements.txt /code/requirements.txt
|
||||
RUN pip install -r /code/requirements.txt
|
||||
|
||||
ADD dist/docker-compose-release-py2.py3-none-any.whl /code/docker-compose
|
||||
RUN pip install --no-deps /code/docker-compose/docker-compose-*
|
||||
COPY dist/docker_compose-${version}-py2.py3-none-any.whl /code/
|
||||
RUN pip install --no-deps /code/docker_compose-${version}-py2.py3-none-any.whl
|
||||
|
||||
ENTRYPOINT ["/usr/bin/docker-compose"]
|
||||
|
|
|
@ -12,5 +12,4 @@ VERSION="$(python setup.py --version)"
|
|||
|
||||
./script/build/write-git-sha
|
||||
python setup.py sdist bdist_wheel
|
||||
cp dist/docker-compose-$VERSION-py2.py3-none-any.whl dist/docker-compose-release-py2.py3-none-any.whl
|
||||
docker build -t docker/compose:$TAG -f Dockerfile.run .
|
||||
docker build --build-arg version=$VERSION -t docker/compose:$TAG -f Dockerfile.run .
|
||||
|
|
Loading…
Reference in New Issue