Commit 2b0e3a3a authored by Tim Schoof's avatar Tim Schoof
Browse files

Create docker image for workers

parent eb9833f4
*
!src
!tests
!LICENSE
!README.md
!setup.cfg
!setup.py
\ No newline at end of file
FROM schooft/asapo-client-base
WORKDIR /asapo/lib
RUN pip3 install attrs==19.3 pytest
COPY LICENSE README.md setup.cfg setup.py ./
COPY src/ src/
COPY tests/ tests/
RUN pip3 install .
\ No newline at end of file
NAME=schooft/asapo-worker
docker build -t ${NAME} . \
&& docker run -it ${NAME} python3 -m pytest || exit 1
if [[ $1 == "push" ]]; then
docker push ${NAME}
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment