You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
686 B

ARG py3version=3.9
FROM python:${py3version}
MAINTAINER Benedikt Kristinsson <benedikt@lokun.is>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Berlin
ADD https://apt.sudo.is/KEY.gpg /tmp/apt.sudo.is.gpg
COPY apt.sudo.is.list /etc/apt/sources.list.d/apt.sudo.is.list
RUN apt-key add /tmp/apt.sudo.is.gpg && apt-get update
RUN python3 -m pip install -U pip \
&& python3 -m pip install poetry virtualenv-tools3 pipx \
&& apt-get install -y ruby ruby-dev rubygems \
&& gem install --no-document fpm
ARG UID=1000
RUN useradd -m -u ${UID} sudois && \
mkdir /sudois && \
chown sudois:sudois /sudois
USER sudois
WORKDIR /sudois
CMD ["poetry"]