Commit 0eaf1a3f authored by Arturo Hernandez [EPAM]'s avatar Arturo Hernandez [EPAM]
Browse files

Merge branch 'MSCOSDU-132-fix-image' into 'master'

Mscosdu 132 fix image

See merge request !5
parents 86a992e3 5e77234a
Pipeline #162525 passed with stages
in 24 minutes and 11 seconds
......@@ -23,27 +23,30 @@ LABEL org.opencontainers.image.url=$VCS_URL \
# See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13
ENV PYTHONUNBUFFERED=1
RUN \
# Add edge repo
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
echo 'http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \
echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
\
# Update packages
apk update --no-cache && apk --no-cache upgrade && \
apk update && apk upgrade --available && sync && \
# Install Python
apk add --no-cache python3 && \
apk add python3 && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
\
\
# Install PiP
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --no-cache --upgrade pip setuptools wheel && \
pip3 install --upgrade pip setuptools wheel && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
RUN apk add busybox==1.35.0-r22 --update-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/main --allow-untrusted
# Install busybox
RUN apk add busybox --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --allow-untrusted
# Clear cache
RUN rm -rf /var/cache/apk/* \
rm -rf /tmp/*
# Create a non root user
RUN addgroup --system osdu && adduser --system osdu --ingroup osdu
......
Supports Markdown
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