1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
### runner
# Use an official Python runtime as a parent image
FROM hylang
# Set the working directory to /dekenserver
WORKDIR /deken
# Copy the deken executable onto the image
COPY deken /usr/local/bin/
COPY deken.hy /usr/local/share/deken/
# we are runnign as root, so set this
ENV DEKEN_ROOT=yes
# gpg-signing in the Docker-container is a bit complicated
ENV DEKEN_SIGN_GPG=no
# install all the required stuff
COPY requirements.txt /tmp
RUN apt-get update && apt-get install -y --no-install-recommends gpg && apt-get clean && rm -rf /var/lib/apt/lists/* \
&& sed -e '/\<hy\>/d' -i /tmp/requirements.txt \
&& pip install --no-cache-dir --trusted-host pypi.python.org --upgrade pip \
&& pip install --no-cache-dir --trusted-host pypi.python.org -r /tmp/requirements.txt \
&& pip uninstall -y cryptography pip \
&& chmod a+rw . \
&& rm /tmp/requirements.txt \
&& deken systemfix --all
CMD [ "deken", "systeminfo" ]
|