Skip to content

Commit

Permalink
Change python version to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
faizansana committed Feb 14, 2024
1 parent adf3c36 commit 91c5b12
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
ARG CARLA_VERSION=0.9.13
ARG CUDA_VERSION=11.8.0
ARG CUDA_VERSION=12.0.0
FROM carlasim/carla:${CARLA_VERSION} AS carla

ARG CUDA_VERSION=11.8.0
ARG CUDA_VERSION=12.0.0
FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu22.04 AS base
SHELL [ "/bin/bash", "-c" ]

ARG CARLA_VERSION=0.9.13

ENV DEBIAN_FRONTEND noninteractive
ENV CARLA_VERSION $CARLA_VERSION
RUN apt-get update && apt-get install -y sudo curl wget git python3-venv iputils-ping
RUN apt-get update && \
apt-get install software-properties-common -y && \
# Needed for installing python3.8 in ubuntu 22.04
add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get update && \
apt-get install -y sudo curl wget git python3.8 python3.8-venv iputils-ping && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Add a docker user so we that created files in the docker container are owned by a non-root user
RUN addgroup --gid 1000 docker && \
Expand Down Expand Up @@ -47,7 +54,7 @@ ENV PYTHON_VENV_NAME driving

COPY --chown=docker:docker ./requirements.txt /tmp
WORKDIR /home/docker
RUN python3 -m venv $PYTHON_VENV_NAME && \
RUN python3.8 -m venv $PYTHON_VENV_NAME && \
source $PYTHON_VENV_NAME/bin/activate && \
pip install --upgrade pip && \
pip install --no-cache-dir -r /tmp/requirements.txt && \
Expand Down

0 comments on commit 91c5b12

Please sign in to comment.