# upgrade pip as root
RUN pip install --upgrade pip
# Gevent needs gcc, make, file, ffi
# upgrade pip as root
RUN pip install --upgrade pip
# Gevent needs gcc, make, file, ffi
# create a non-root user. Only really needed in stage 2,
# however this makes the copying easier and straighttforward;
# pip option --user doesn't do the same thing if run as root
# create a non-root user. Only really needed in stage 2,
# however this makes the copying easier and straighttforward;
# pip option --user doesn't do the same thing if run as root
# copy python modules; this makes the 2 stage python build work
COPY --from=compile-image /home/a1user/.local /home/a1user/.local
# copy python modules; this makes the 2 stage python build work
COPY --from=compile-image /home/a1user/.local /home/a1user/.local