diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c1c9f4d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git* diff --git a/Dockerfile b/Dockerfile index 1ac2b9b..b9f072a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,19 @@ FROM python:3.8 +WORKDIR /app + +# This expects the models submodule to be present +COPY models models + RUN pip install --upgrade pip # Avoid rebuilding this step if no changes to requirements.txt COPY requirements.txt . RUN pip install -r requirements.txt -# Copy everything in the container -# This expects the models submodule to be present -COPY . . +# Copy everything else +COPY app app +COPY *.py LICENSE README.md ./ EXPOSE 5000 ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" ] diff --git a/main.py b/main.py index 47e7c43..6546544 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ parser.add_argument('--ssl', default=None, action="store_true", parser.add_argument('--frontend-language-source', type=str, default="en", metavar="", help='Set frontend default language - source (%(default)s)') parser.add_argument('--frontend-language-target', type=str, default="es", metavar="", - help='Set frontend default language - target (%(default)s)') + help='Set frontend xxxdefault language - target (%(default)s)') args = parser.parse_args()