Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup backend Dockerfile #2982

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
35 changes: 13 additions & 22 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,19 @@ RUN geckodriver --version
RUN mkdir -p /root/.rustup/downloads /root/.cargo/registry && \
chmod -R 777 /root/.rustup /root/.cargo

# Add rust and cargo to PATH
ENV PATH="/root/.cargo/bin:${PATH}"

# Add rust and cargo to PATH (before actual rust installation to ensure rustup is found!)
ENV PATH="/usr/bin/:/root/.cargo/bin:/usr/local/bin:${PATH}"
# Install the specific version of Rust
RUN set -x \
&& rustup install 1.78.0
RUN set -x \
&& rustup default 1.78.0
RUN set -x && rustup install 1.78.0 && \
rustup default 1.78.0


COPY ./scripts/ scripts/
RUN ./scripts/docker/install-go.sh
ENV PATH="${PATH}:/usr/local/go/bin"
RUN ./scripts/docker/install-workers-deps.sh



EXPOSE 5000

Expand All @@ -79,30 +84,16 @@ COPY ./alembic.ini .
COPY ./augur/ augur/
COPY ./metadata.py .
COPY ./setup.py .
COPY ./scripts/ scripts/

# Add rust and cargo to PATH
ENV PATH="/usr/bin/:/root/.cargo/bin:/usr/local/bin:${PATH}"

RUN python3 -m venv /opt/venv

RUN set -x \
&& /opt/venv/bin/pip install --upgrade pip

RUN set -x \
&& /opt/venv/bin/pip install wheel

RUN set -x \
&& /opt/venv/bin/pip install .
RUN python3 -m venv /opt/venv

RUN set -x \
&& /opt/venv/bin/pip install --upgrade pip \
&& /opt/venv/bin/pip install wheel \
&& /opt/venv/bin/pip install .

RUN ./scripts/docker/install-go.sh
ENV PATH="${PATH}:/usr/local/go/bin"
RUN ./scripts/docker/install-workers-deps.sh

# RUN ./scripts/install/workers.sh

Expand Down