Commit a3605ab4 authored by ale's avatar ale

Add missing packages in final image

parent d4429ef3
Pipeline #5140 passed with stages
in 2 minutes and 28 seconds
......@@ -2,17 +2,23 @@ FROM debian:buster AS build
RUN apt-get -q update && \
env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \
python python-dev python-pip python-setuptools python-wheel git build-essential
python3 python3-dev python3-pip python3-setuptools python3-wheel git build-essential
ADD . /src
WORKDIR /src
RUN mkdir -p dist; pip wheel -r requirements.txt -w dist
RUN python setup.py bdist_wheel
RUN mkdir -p dist; pip3 wheel -r requirements.txt -w dist
RUN python3 setup.py bdist_wheel
FROM debian:buster
RUN apt-get -q update && \
env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \
python3 python3-pip python3-setuptools python3-wheel \
&& apt-get clean \
&& rm -fr /var/lib/apt/lists/*
COPY --from=build /src/dist/*.whl /tmp/wheels/
RUN cd /tmp/wheels && pip install *.whl && rm -fr /tmp/wheels
RUN cd /tmp/wheels && pip3 install *.whl && rm -fr /tmp/wheels
ENTRYPOINT ["/usr/bin/python-mysql-api-server"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment