Comment the dockerfile better

merge-requests/54/head
David Corne 2020-07-16 11:42:54 +01:00
parent de7a773114
commit bd18460d60
1 changed files with 6 additions and 0 deletions

View File

@ -1,12 +1,18 @@
FROM ubuntu:trusty FROM ubuntu:trusty
# Install the prerequisites for this
RUN sudo apt-get -y update RUN sudo apt-get -y update
RUN sudo apt-get -y upgrade RUN sudo apt-get -y upgrade
RUN sudo apt-get install -y sqlite3 libsqlite3-dev python3 python3-pip RUN sudo apt-get install -y sqlite3 libsqlite3-dev python3 python3-pip
RUN pip3 install 'pyyaml>5.1' RUN pip3 install 'pyyaml>5.1'
# Ensure that python runs everything as UTF-8 compatible
ENV PYTHONIOENCODING UTF-8 ENV PYTHONIOENCODING UTF-8
# Copy the project into the docker image
COPY . /project COPY . /project
WORKDIR /project/bin WORKDIR /project/bin
# Run the database creation script
CMD [ "python3", "gendb.py"] CMD [ "python3", "gendb.py"]