From bd18460d601ab917fcd9ed4ef14ea35637323e7e Mon Sep 17 00:00:00 2001 From: David Corne Date: Thu, 16 Jul 2020 11:42:54 +0100 Subject: [PATCH] Comment the dockerfile better --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 76659cf..75425f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,18 @@ FROM ubuntu:trusty + +# Install the prerequisites for this RUN sudo apt-get -y update RUN sudo apt-get -y upgrade RUN sudo apt-get install -y sqlite3 libsqlite3-dev python3 python3-pip RUN pip3 install 'pyyaml>5.1' +# Ensure that python runs everything as UTF-8 compatible ENV PYTHONIOENCODING UTF-8 + +# Copy the project into the docker image COPY . /project WORKDIR /project/bin +# Run the database creation script CMD [ "python3", "gendb.py"]