Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Deployment and Operations
base-containers-azure
alpine-python3
Commits
0eaf1a3f
Commit
0eaf1a3f
authored
Aug 17, 2022
by
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
Changes
1
Pipelines
165
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
0eaf1a3f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment