Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,24 @@ ENV NODE_ENV "dev"
# Install Node.js packages
RUN npm install -g http-server

# Install Python build dependencies
RUN apt-get install -y \
# Suggested build environment for Python, per pyenv, even though we're building ourselves
# https://github.com/pyenv/pyenv/wiki#suggested-build-environment
RUN apt-get install --no-install-recommends -y \
build-essential \
curl \
libssl-dev \
libbz2-dev \
libncurses5-dev \
libffi-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxmlsec1-dev \
llvm \
python-openssl \
make \
tk-dev \
wget \
xz-utils \
zlib1g-dev

Expand All @@ -138,7 +142,6 @@ RUN cd /tmp && \
cd .. && \
rm -rf Python-3.9.1 && \
pip3 install --upgrade pip
ENV PYTHONDONTWRITEBYTECODE "1"


# Install Python packages
Expand Down
3 changes: 2 additions & 1 deletion etc/profile.d/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ if [ "$(whoami)" != "root" ]; then
export LC_ALL="C.UTF-8"
export LC_CTYPE="C.UTF-8"

# Python
export PYTHONDONTWRITEBYTECODE="1"
fi

# If ubuntu
Expand All @@ -121,7 +123,6 @@ export N_PREFIX="/opt/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PRE

# Python
export PATH="$HOME"/.local/bin:"$PATH"
export PYTHONDONTWRITEBYTECODE="1"

# Ruby
export GEM_HOME="$HOME"/.gem
Expand Down