Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 263d340

Browse files
authored
Upgrade Dockerfile to stretch. (#2647)
1 parent fab4b15 commit 263d340

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6.8-jessie
1+
FROM python:3.6.8-stretch
22

33
ENV LC_ALL=C.UTF-8
44
ENV LANG=C.UTF-8
@@ -30,14 +30,10 @@ RUN apt-get update --fix-missing && apt-get install -y \
3030
libxrender1 \
3131
wget \
3232
libevent-dev \
33-
build-essential && \
33+
build-essential \
34+
openjdk-8-jdk && \
3435
rm -rf /var/lib/apt/lists/*
3536

36-
# Install Java.
37-
RUN echo "deb http://http.debian.net/debian jessie-backports main" >>/etc/apt/sources.list
38-
RUN apt-get update
39-
RUN apt-get install -y -t jessie-backports openjdk-8-jdk
40-
4137
# Copy select files needed for installing requirements.
4238
# We only copy what we need here so small changes to the repository does not trigger re-installation of the requirements.
4339
COPY requirements.txt .

Dockerfile.pip

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This Dockerfile creates an environment suitable for downstream usage of AllenNLP.
22
# It creates an environment that includes a pip installation of allennlp.
33

4-
FROM python:3.6.8-jessie
4+
FROM python:3.6.8-stretch
55

66
ENV LC_ALL=C.UTF-8
77
ENV LANG=C.UTF-8

0 commit comments

Comments
 (0)