Skip to content

Commit

Permalink
rm experimental val for base image
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Aug 6, 2024
1 parent aafec3c commit a8a74cc
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions Dockerfile-base
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,16 @@ WORKDIR /app
RUN mkdir /app/data

# copy deps
COPY ./assets/requirements.base.txt ./assets/scripts/remove_deps.sh ./assets/scripts/update_deps.sh ./assets/dropped.txt /app/assets/
# COPY ./uploads /app/uploads
# COPY ./assets/requirements.base.txt ./assets/scripts/remove_deps.sh ./assets/scripts/update_deps.sh ./assets/dropped.txt /app/assets/
COPY ./assets/requirements.base.txt ./assets/scripts/install_deps.sh /app/assets/

# copy example files TODO: optimize this.
COPY ./model-examples/sbml-core/Elowitz-Nature-2000-Repressilator.omex /app/data/Elowitz-Nature-2000-Repressilator.omex
COPY ./model-examples/sbml-core/Elowitz-Nature-2000-Repressilator /app/data/Elowitz-Nature-2000-Repressilator

# env specific deps
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
g++ \
libhdf5-dev \
libboost-all-dev \
swig \
python3-dev \
libatlas-base-dev \
libopenblas-dev \
liblapack-dev \
&& apt-get clean
RUN chmod +x /app/assets/install_deps.sh

# Install pipenv and set up environment
RUN pip install pipenv \
&& pipenv install --system --deploy \
# && pipenv install --skip-lock \
&& pipenv install -r /app/assets/requirements.base.txt
# CMD ["pip", "install", "-r", "/app/assets/requirements.base.txt"]

# RUN chmod +x /app/assets/remove_deps.sh \
# && chmod +x /app/assets/update_deps.sh \
Expand All @@ -53,13 +37,3 @@ RUN pip install pipenv \

# shared tooling module
# COPY ./assets/shared.py /app/shared.py

# yes | docker system prune -a && yes | docker buildx prune -a \
# && docker build -f ./Dockerfile-base -t "$PKG_ROOT"-base:"$base_version" . \
# && docker tag "$PKG_ROOT"-base:"$base_version" "$PKG_ROOT"-base:latest \
# && docker build -f ./api/Dockerfile-api -t ghcr.io/biosimulators/bio-check-api:0.0.0 ./api \
# && docker build -f ./worker/Dockerfile-worker -t ghcr.io/biosimulators/bio-check-worker:0.0.0 ./worker


# docker run --name worker --platform linux/amd64 -it ghcr.io/biosimulators/bio-check-worker:0.0.0 \
# && docker run --name api --platform linux/amd64 -it ghcr.io/biosimulators/bio-check-api:0.0.0

0 comments on commit a8a74cc

Please sign in to comment.