From adae2095d26fee6b9cb94190e4538d0dfc6c9e49 Mon Sep 17 00:00:00 2001 From: frozenfoxx Date: Tue, 12 May 2020 21:43:01 -0700 Subject: [PATCH] Updated Dockerfile --- Dockerfile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa6924e..ba4bf8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,26 @@ # Base image -FROM ubuntu:18.04 +FROM ubuntu:20.04 # Variables ENV CRAWL_REPO=https://github.com/crawl/crawl.git \ BUILD_DEPS="autoconf bison build-essential flex git" \ - APP_DEPS="bzip2 python-minimal ncurses-term locales-all sqlite3 libpcre3 liblua5.1-0 locales lsof libncursesw5-dev libsqlite3-dev sudo libbot-basicbot-perl" + APP_DEPS="bzip2 python3-minimal python3-pip ncurses-term locales-all sqlite3 libpcre3 liblua5.1-0 locales lsof libncursesw5-dev libsqlite3-dev sudo libbot-basicbot-perl" # Logic -RUN apt update && \ - upgrade -y && \ - install -y ${BUILD_DEPS} ${APP_DEPS} +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y ${BUILD_DEPS} ${APP_DEPS} +# Install Tornado RUN pip3 install tornado +# Retrieve crawl RUN git clone ${CRAWL_REPO} /src/ + +# Clean up unnecessary packages +RUN apt-get remove -y ${BUILD_DEPS} && \ + apt-get autoremove --purge -y && \ + rm -rf /var/lib/apt/lists/* + +# Expose ports +EXPOSE 8080 \ No newline at end of file