Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker environment #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM python:3.6.11-slim-buster

RUN apt update && \
apt install -y --no-install-recommends \
git \
tini && \
apt clean &&\
rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY . .

RUN pip install -U pip setuptools wheel && \
python3 setup.py install

ENV UID=1000
RUN useradd -M -u ${UID} -U jupyter

USER jupyter

ENTRYPOINT ["tini", "--"]
CMD ["jupyter-repo2cwl"]
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3"
services:
app:
image: ipython2cwl
build:
context: .
dockerfile: Dockerfile
container_name: ipython2cwl
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${PWD}:/app
working_dir: /app
user: "1000:root"
command: ["jupyter-repo2cwl"]