Files
Anthias/docker/Dockerfile.test
Nico Miguelino 83afe40ff1 Bring back test suite runs on GitHub actions (#1616)
- Add a new GitHub workflow for running unit tests.
- Modify existing workflow for building images, so that it will only run if no tests are failing.
- "Comment out" (skip) failing Python unit tests in the meantime. Will be addressed in future PRs.
2022-10-06 00:12:44 +08:00

22 lines
567 B
Docker

FROM screenly/srly-ose-base:latest-x86
ADD requirements/requirements.txt /tmp/requirements.txt
ADD requirements/requirements.dev.txt /tmp/requirements.dev.txt
ADD requirements/requirements.viewer.txt /tmp/requirements.viewer.txt
RUN pip install --no-cache-dir \
-r /tmp/requirements.txt \
-r /tmp/requirements.dev.txt \
-r /tmp/requirements.viewer.txt
RUN mkdir -p /usr/src/app
COPY . /usr/src/app
WORKDIR /usr/src/app
ARG GIT_HASH
ENV GIT_HASH=$GIT_HASH
ARG GIT_SHORT_HASH
ENV GIT_SHORT_HASH=$GIT_SHORT_HASH
ARG GIT_BRANCH
ENV GIT_BRANCH=$GIT_BRANCH