34 lines
838 B
Docker
34 lines
838 B
Docker
ARG py3version=3.11
|
|
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 set -x && \
|
|
apt-key add /tmp/apt.sudo.is.gpg && \
|
|
apt-get update
|
|
|
|
RUN set -x && \
|
|
python3 -m pip install -U pip setuptools && \
|
|
python3 -m pip install poetry pipx black virtualenv-tools3 && \
|
|
apt-get install -y ruby ruby-dev rubygems tree jq && \
|
|
gem install --no-document fpm
|
|
|
|
ARG UID=1000
|
|
RUN set -x && \
|
|
useradd -m -u ${UID} sudois && \
|
|
mkdir /sudois && \
|
|
chown sudois:sudois /sudois
|
|
USER sudois
|
|
WORKDIR /sudois
|
|
|
|
RUN python3 --version && \
|
|
python3 -m poetry self --version
|
|
|
|
ENTRYPOINT ["python3"]
|
|
CMD ["-m", "poetry"]
|