Skip to content

Commit

Permalink
alpine sux, adopting python:slim img
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Costa committed Nov 12, 2020
1 parent 9673891 commit b84431a
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/cdis/alpine:3.12.1
FROM python:slim

USER root

Expand All @@ -9,8 +9,8 @@ ARG group=sdet
ARG uid=1000
ARG gid=1000

RUN addgroup -g ${gid} ${group} \
&& adduser --home "$SDET_HOME" --uid ${uid} --ingroup ${group} --disabled-password --shell /bin/sh ${user}
RUN addgroup -gid ${gid} ${group} \
&& adduser --home "$SDET_HOME" --uid ${uid} --gid ${gid} --disabled-password --shell /bin/sh ${user}

ENV DEBIAN_FRONTEND=noninteractive

Expand All @@ -30,25 +30,19 @@ ENV PYTHONUNBUFFERED=1 \
# prepend poetry and venv to path
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"

RUN apk add --update --no-cache python3 \
&& ln -sf python3 /usr/bin/python \
&& python3 -m ensurepip \
&& pip3 install --no-cache --upgrade pip setuptools

# install everything else
RUN set -xe && apk add --no-cache --virtual .build-deps \
# install everything
RUN apt-get update \
&& apt-get install -y lsb-release \
gcc \
zip \
unzip \
less \
vim \
gcc \
libc-dev \
libffi-dev \
make \
openssl-dev \
pcre-dev \
zlib-dev \
linux-headers \
libssl-dev \
libcurl4-openssl-dev \
curl \
wget \
jq \
Expand Down

0 comments on commit b84431a

Please sign in to comment.