Updated Dockerfile

This commit is contained in:
frozenfoxx
2020-05-12 21:43:01 -07:00
parent 11f9045738
commit adae2095d2

View File

@@ -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