-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 reduce down to minimal layers would reduce downstream image si…
…ze, put it back
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,23 @@ ENTRYPOINT ["/entrypoint.sh"] | |
WORKDIR /main | ||
VOLUME /tmp/.X11-unix | ||
CMD ["sh"] | ||
|
||
# Squashed Final Image | ||
FROM scratch | ||
COPY --from=miniconda-build / / | ||
LABEL maintainerName="Raphael Guzman" \ | ||
maintainerEmail="[email protected]" \ | ||
maintainerCompany="DataJoint" | ||
USER anaconda:anaconda | ||
# Add conda to path here for use in downstream dockerfiles | ||
ENV PATH /opt/conda/bin:$PATH | ||
ENV ENV "/home/anaconda/.ashrc" | ||
ENV HOME /home/anaconda | ||
ENV LANG C.UTF-8 | ||
ENV APK_REQUIREMENTS /tmp/apk_requirements.txt | ||
ENV PIP_REQUIREMENTS /tmp/pip_requirements.txt | ||
ENV CONDA_REQUIREMENTS /tmp/conda_requirements.txt | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
WORKDIR /main | ||
VOLUME /tmp/.X11-unix | ||
CMD ["sh"] |
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 |
---|---|---|
|
@@ -88,3 +88,22 @@ ENTRYPOINT ["/entrypoint.sh"] | |
WORKDIR /main | ||
VOLUME /tmp/.X11-unix | ||
CMD ["bash"] | ||
|
||
# Squashed Final Image | ||
FROM scratch | ||
COPY --from=miniconda-build / / | ||
LABEL maintainerName="Raphael Guzman" \ | ||
maintainerEmail="[email protected]" \ | ||
maintainerCompany="DataJoint" | ||
USER anaconda:anaconda | ||
# Add conda to path here for use in downstream dockerfiles | ||
ENV PATH /opt/conda/bin:$PATH | ||
ENV HOME /home/anaconda | ||
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | ||
ENV APT_REQUIREMENTS /tmp/apt_requirements.txt | ||
ENV PIP_REQUIREMENTS /tmp/pip_requirements.txt | ||
ENV CONDA_REQUIREMENTS /tmp/conda_requirements.txt | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
WORKDIR /main | ||
VOLUME /tmp/.X11-unix | ||
CMD ["bash"] |