mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
create dockerfile and docker-compose.yml to make setting up pytest easy
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user