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 \
|
2019-10-08 04:21:08 -07:00
|
|
|
&& apt-get install -y python3.6 python3-pip mysql-client \
|
|
|
|
libmysqlclient-dev python-mysqldb postgresql-client \
|
2019-08-23 08:47:19 -07:00
|
|
|
openjdk-11-jdk git unzip wget curl \
|
|
|
|
&& 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
|
|
|
|
|