Skip to content

Commit

Permalink
install rust manually
Browse files Browse the repository at this point in the history
  • Loading branch information
BukiOffor committed Mar 22, 2024
1 parent c1bdcb1 commit 9636f99
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
FROM rust:1.67 as builder
FROM nikolaik/python-nodejs


FROM python:3.8-slim


RUN apt-get install -y python3 make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git && \
curl https://pyenv.run | bash && \
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3

ENV HOME /home/admin
ENV PYENV_ROOT $HOME/.pyenv
ENV POETRY_ROOT $HOME/.poetry
ENV CARGO_ROOT /usr/local/cargo
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
ENV PATH $POETRY_ROOT/bin:$PATH
ENV PATH $CARGO_ROOT/bin:$PATH


WORKDIR /app

RUN curl --proto '=https' --tlsv1.2 -sSf -y https://sh.rustup.rs | sh
ENV PATH /app/.cargo/bin:$PATH


COPY ./requirements.txt /app
RUN pip install -r requirements.txt
COPY . .
Expand Down

0 comments on commit 9636f99

Please sign in to comment.