-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove unused files and redundant stages
- Loading branch information
Showing
7 changed files
with
2 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters