ottertune/docker/Dockerfile.base-ubuntu-18.04

25 lines
753 B
Docker
Raw Normal View History

2019-08-23 08:47:19 -07:00
FROM ubuntu:18.04
ARG GRADLE_VERSION=gradle-5.5.1
ENV DEBIAN_FRONTEND=noninteractive
ENV GRADLE_HOME=/opt/${GRADLE_VERSION}
ENV PATH=${GRADLE_HOME}/bin:${PATH}
COPY ./server/website/requirements.txt /
RUN apt-get update \
&& apt-get install -y python3.6 python3-pip mysql-client \
libmysqlclient-dev python-mysqldb postgresql-client \
2019-10-23 12:59:22 -07:00
openjdk-11-jdk checkstyle git unzip wget curl \
2019-08-23 08:47:19 -07:00
&& wget https://services.gradle.org/distributions/${GRADLE_VERSION}-bin.zip \
&& unzip ${GRADLE_VERSION}-bin.zip -d /opt \
&& rm ${GRADLE_VERSION}-bin.zip \
&& python3 --version \
&& pip3 --version \
&& javac --version \
&& gradle --version \
&& pip3 install -r /requirements.txt \
&& rm /requirements.txt