Skip to content

Commit

Permalink
chore(devcontainer): use coatldev/six:jython-3.12 as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed May 20, 2024
1 parent b8225e1 commit e4ecac2
Showing 1 changed file with 3 additions and 44 deletions.
47 changes: 3 additions & 44 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,50 +1,9 @@
# hadolint global ignore=DL3008,DL3042
FROM coatldev/six:3.12 as base

ENV JYTHON_VERSION 2.7.3
ENV JYTHON_HOME /opt/jython/${JYTHON_VERSION}

RUN set -eux; \
\
apt-get update --quiet; \
apt-get install --yes --no-install-recommends \
openjdk-17-jre \
; \
rm -rf /var/lib/apt/lists/*

# >============================================================================<

FROM base as jython

RUN set -eux; \
\
apt-get update --quiet; \
apt-get install --yes --no-install-recommends \
wget \
; \
rm -rf /var/lib/apt/lists/*

WORKDIR /tmp

RUN set -eux; \
\
wget -q "https://repo1.maven.org/maven2/org/python/jython-installer/${JYTHON_VERSION}/jython-installer-${JYTHON_VERSION}.jar"; \
\
java -jar "jython-installer-${JYTHON_VERSION}.jar" \
--silent \
--type standard \
--directory "$JYTHON_HOME"

# >============================================================================<

FROM base as final

COPY --from=jython ${JYTHON_HOME}/ ${JYTHON_HOME}/

ENV PATH ${JYTHON_HOME}/bin:$PATH
FROM coatldev/six:jython-3.12 as devcontainer

COPY requirements /tmp/requirements/

# pip caching disabled by base image
# hadolint ignore=DL3042
RUN set -eux; \
\
python2 -m pip install --requirement \
Expand Down

0 comments on commit e4ecac2

Please sign in to comment.