Skip to content

Commit

Permalink
switch dockerfile to run tests and include new module files
Browse files Browse the repository at this point in the history
  • Loading branch information
LGro committed Apr 30, 2022
1 parent 8cfdf23 commit 7c8fa98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.9.12-slim-bullseye@sha256:ba3b77ddbc953cdb8d998b2052088d4af4b8805805e5b01975a05af4e19855ea

RUN apt-get update && apt-get install -y build-essential tar curl zip unzip git pkg-config
RUN apt-get update -q && apt-get install -q -y build-essential tar curl zip unzip git pkg-config

RUN git clone -b 2022.04.12 https://github.com/microsoft/vcpkg /tmp/vcpkg

Expand All @@ -15,13 +15,13 @@ COPY ./setup.py /tmp/pyapsi/setup.py
COPY ./pyproject.toml /tmp/pyapsi/pyproject.toml
COPY ./poetry.lock /tmp/pyapsi/poetry.lock
COPY ./src /tmp/pyapsi/src
COPY ./examples /tmp/pyapsi/examples
COPY ./apsi /tmp/pyapsi/apsi
COPY ./tests /tmp/pyapsi/tests

WORKDIR /tmp/pyapsi

RUN pip install poetry && \
poetry install && \
poetry run pip install --verbose .

#RUN poetry run python examples/advanced.py
CMD ["poetry", "run", "python", "examples/advanced.py"]
CMD ["poetry", "run", "pytest", "tests"]

0 comments on commit 7c8fa98

Please sign in to comment.