Commit 726635b5 authored by Daniel Scholl's avatar Daniel Scholl
Browse files

Merged and updated Dockerfile with base container

parent 95213e06
Pipeline #36700 failed with stages
in 25 minutes and 54 seconds
FROM alpine:3.13
FROM community.opengroup.org:5555/osdu/platform/deployment-and-operations/base-containers-azure/alpine-python3:0.0.2
ARG DATA_PARTITION=opendes
ENV BUILD_PACKAGES \
python3 \
gcc \
py-cryptography
ENV PYTHONUNBUFFERED=1 \
PATH="/home/osdu/.local/bin:${PATH}" \
DATA_PARTITION=${DATA_PARTITION} \
......@@ -18,21 +17,9 @@ USER root
RUN set -x \
echo "**** install Python ****" && \
apk update && \
apk add --no-cache ${BUILD_PACKAGES} && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
\
echo "**** install pip ****" && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --no-cache --upgrade pip setuptools wheel && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi &&\
apk add --no-cache ${BUILD_PACKAGES} &&\
rm -rf /var/cache/apk/*
# Create osdu user
RUN addgroup -S osdu && adduser -S osdu -G osdu
WORKDIR /home/osdu
# Install Requirements
ADD scripts/azure/requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
......
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