create dockerfile and docker-compose.yml to make setting up pytest easy

This commit is contained in:
Nick Klockenga
2023-09-06 17:17:35 -04:00
parent b9eee3901e
commit 2df6ae7ff2
2 changed files with 37 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
version: '3.7'
services:
seedsigner-dev:
build:
context: .
dockerfile: docker/Dockerfile
command: sh -c 'bash -c "tail -f /dev/null"'
volumes:
# map the outside directory to /code inside the container
- ../seedsigner:/seedsigner
#ports:
# enable ssh outside the container
# - 22:22
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.10-bullseye
# install zbar dependencyy
RUN apt-get -qq update
RUN apt-get -y -qq install zbar-tools
# temp add/copy seedsigner local repo to do pip3 install
ADD . /seedsigner
WORKDIR /seedsigner
#COPY ../requirements.txt /requirements.txt
#COPY ../tests/requirements.txt /tests-requirements.txt
RUN pip3 install -r requirements.txt
RUN pip3 install -r tests/requirements.txt
RUN pip3 install -e .
# clean up copied files
WORKDIR /
RUN rm -r /seedsigner
# set working dir
WORKDIR /seedsigner