Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Nov 5, 2023
1 parent 5f4445a commit fc3683a
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ ENV LANG C.UTF-8
WORKDIR /app/

# Install dependencies for Python 3.10
RUN apt-get update \
&& apt-get install --no-install-recommends -y gnupg2 wget build-essential ca-certificates curl tar make zlib1g-dev libssl-dev libpcre3-dev \
RUN apt-get update && apt-get install --no-install-recommends -y gnupg2 wget build-essential ca-certificates curl tar make zlib1g-dev libssl-dev libpcre3-dev \
&& rm -rf /var/lib/apt/lists/*


# Install Python 3.10 from the official Python repository
RUN curl -O https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz && \
tar -xzvf Python-3.10.0.tgz && \
cd Python-3.10.0 && \
make -j "$(nproc)" && \
make install && \
cd .. && \
rm -rf Python-3.10.0*
RUN curl https://pyenv.run | bash
RUN git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
RUN echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc && \
echo 'eval "$(pyenv init -)"' >> ~/.bashrc && \
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
RUN pyenv install 3.10.0
RUN pyenv global 3.10.0

# Install dependencies
RUN apt-get update \
Expand Down

0 comments on commit fc3683a

Please sign in to comment.