Skip to content
Snippets Groups Projects
Commit c4fa4383 authored by inso's avatar inso
Browse files

Create Dockerfile with pyenv

parents
No related branches found
No related tags found
No related merge requests found
# Image for Duniter releases on Linux.
#
# Building this image:
# docker build . -t duniter/release-builder
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
# Install needed tools
RUN apt-get update && \
apt-get install -y apt-transport-https curl && \
apt-get update && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Create compiling user
RUN mkdir /builder && \
adduser --system --group --quiet --shell /bin/bash --home /builder builder && \
chown builder:builder /builder
WORKDIR /builder
# Load pyenv
ENV PYENV_ROOT "/builder/.pyenv"
USER builder
RUN git clone https://github.com/pyenv/pyenv.git /builder/.pyenv && \
echo "export PYENV_ROOT=$PYENV_ROOT" >> /builder/.profile && \
echo "export PATH=$PYENV_ROOT/bin:$PATH" >> /builder/.profile && \
USER root
# Entry point
COPY bootstrap.sh /root/bootstrap.sh
RUN chmod u+x /root/bootstrap.sh
ENTRYPOINT ["/root/bootstrap.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment