Skip to content

Commit

Permalink
chore: remove unused files and redundant stages
Browse files Browse the repository at this point in the history
  • Loading branch information
adamblake committed Mar 8, 2024
1 parent cb0aafc commit c953ad1
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 121 deletions.
9 changes: 0 additions & 9 deletions base-r-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,3 @@ RUN --mount=type=cache,target=${CONDA_DIR}/pkgs,uid=${NB_UID},sharing=locked \

# add R mimetype and networking options
COPY --chown=${NB_UID}:${NB_GID} Rprofile.site "${R_HOME}"/etc/

# add common utilities
USER root
COPY --chmod=555 bin/ /usr/local/bin/
RUN chmod 555 \
/usr/local/bin/find-shared-libs \
/usr/local/bin/diff-shared-libs \
/usr/local/bin/copy-shared-libs
USER ${NB_UID}
62 changes: 0 additions & 62 deletions base-r-notebook/bin/copy-shared-libs

This file was deleted.

14 changes: 0 additions & 14 deletions base-r-notebook/bin/diff-shared-libs

This file was deleted.

17 changes: 0 additions & 17 deletions base-r-notebook/bin/find-shared-libs

This file was deleted.

19 changes: 2 additions & 17 deletions datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,11 @@ ARG PIP_CACHE_DIR=/tmp/pip-cache
ARG PIP_WHEEL_DIR=/tmp/pip-wheels
ARG APT_CACHE_DIR=/var/cache/apt
ARG APT_LIB_DIR=/var/lib/apt
ARG SHARED_LIBS_LIST=/tmp/shared-libs.txt


# base
# -------------------------------------
FROM ${PARENT_IMAGE} as base

# install cmdstan dependencies
USER root
ARG APT_CACHE_DIR APT_LIB_DIR
RUN --mount=type=cache,target="${APT_CACHE_DIR}",sharing=locked \
--mount=type=cache,target="${APT_LIB_DIR}",sharing=locked \
apt-get update && apt-get upgrade -y && apt-get -y install --no-install-recommends \
g++
USER ${NB_UID}


# py-builder
# -------------------------------------
FROM base as py-builder
FROM ${PARENT_IMAGE} as py-builder

RUN --mount=type=cache,target=${CONDA_DIR}/pkgs,uid=${NB_UID},sharing=locked \
mamba install --yes "gdal"
Expand All @@ -49,7 +34,7 @@ RUN --mount=type=bind,source="${PY_REQUIREMENTS}",target=/tmp/requirements.txt \

# final
# -------------------------------------
FROM base
FROM ${PARENT_IMAGE} as base
LABEL maintainer="CourseKata <[email protected]>"

# install cmdstan and related requests
Expand Down
1 change: 0 additions & 1 deletion essentials-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ARG PIP_CACHE_DIR=/tmp/pip-cache
ARG PIP_WHEEL_DIR=/tmp/pip-wheels
ARG APT_CACHE_DIR=/var/cache/apt
ARG APT_LIB_DIR=/var/lib/apt
ARG SHARED_LIBS_LIST=/tmp/shared-libs.txt


# py-builder
Expand Down
1 change: 0 additions & 1 deletion r-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ ARG PIP_CACHE_DIR=/tmp/pip-cache
ARG PIP_WHEEL_DIR=/tmp/pip-wheels
ARG APT_CACHE_DIR=/var/cache/apt
ARG APT_LIB_DIR=/var/lib/apt
ARG SHARED_LIBS_LIST=/tmp/shared-libs.txt


# py-builder
Expand Down

0 comments on commit c953ad1

Please sign in to comment.