Remove old lines from dockerfile
This commit is contained in:
33
Dockerfile
33
Dockerfile
@@ -21,48 +21,15 @@ ENV TZ="America/Detroit"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Create a non-privileged user that the app will run under.
|
||||
# See https://docs.docker.com/go/dockerfile-user-best-practices/
|
||||
# ARG UID=10001
|
||||
# RUN useradd appuser
|
||||
|
||||
# update package list
|
||||
RUN apt-get update
|
||||
|
||||
# install wget
|
||||
|
||||
# install python, pipx
|
||||
RUN apt-get install -y wget python3 pipx
|
||||
|
||||
# install latest conda
|
||||
# ENV PATH="/root/miniconda3/bin:${PATH}"
|
||||
# ARG PATH="/root/miniconda3/bin:${PATH}"
|
||||
# RUN arch=$(uname -m) && \
|
||||
# if [ "$arch" = "x86_64" ]; then \
|
||||
# MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"; \
|
||||
# elif [ "$arch" = "aarch64" ]; then \
|
||||
# MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh"; \
|
||||
# else \
|
||||
# echo "Unsupported architecture: $arch"; \
|
||||
# exit 1; \
|
||||
# fi && \
|
||||
# wget $MINICONDA_URL -O miniconda.sh && \
|
||||
# mkdir -p /root/.conda && \
|
||||
# bash miniconda.sh -b -p /root/miniconda3 && \
|
||||
# rm -f miniconda.sh
|
||||
|
||||
# Copy the source code into the container.
|
||||
COPY . .
|
||||
|
||||
# RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
|
||||
# conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
|
||||
|
||||
# RUN conda env create -f ./environment.yml
|
||||
|
||||
# SHELL ["conda", "run", "-n", "very-bad", "/bin/bash", "-c"]
|
||||
|
||||
# Switch to the non-privileged user to run the application.
|
||||
|
||||
# install poetry via pipx
|
||||
RUN pipx install poetry && pipx ensurepath
|
||||
RUN ~/.local/bin/poetry install
|
||||
|
||||
Reference in New Issue
Block a user