diff --git a/.dockerignore b/.dockerignore index 5548d9ba0d57562bd9078904933bb5085158d68c..51bd219f82a5bc8ff8c5273fceb352697c26aad0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,5 @@ .travis.yaml .swagger-codegen-ignore -README.md tox.ini git_push.sh test-requirements.txt diff --git a/Dockerfile b/Dockerfile index d695d1640acb0925dd0c1b1b82b7b934ede94817..6b699675a2fd94a8f9f35041549af63c097ca2a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,26 +6,29 @@ LABEL maintainer="David Trattnig <david.trattnig@subsquare.at>" RUN apt-get update && apt-get -y install \ apt-utils \ - build-essential + build-essential \ + curl \ + pip +RUN python3 -m pip install --upgrade pip +RUN pip install poetry # Setup Engine RUN mkdir -p /srv RUN mkdir -p /srv/src RUN mkdir -p /srv/config -RUN /usr/local/bin/python -m pip install --upgrade pip COPY src /srv/src COPY config/sample.engine.docker.ini /etc/aura/engine.ini -COPY requirements.txt /srv -COPY contrib/postgresql-requirements.txt /srv +COPY pyproject.toml /srv +COPY poetry.lock /srv +COPY README.md /srv COPY VERSION /srv COPY Makefile /srv WORKDIR /srv -RUN pip3 install -r requirements.txt -RUN pip3 install -r postgresql-requirements.txt +RUN poetry install --without dev --no-interaction --extras "pgsql" # Start the Engine ENTRYPOINT ["make"]