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"]