Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Add docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Feb 7, 2019
1 parent 717484c commit 8774766
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added

- Add Dockerfile and docker-compose.yml for development.
- `EncodedSeq.shift`, which will shift sequence by an offset integer.

## 0.5.1 (2019-01-09)
Expand Down
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM python:3.6

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
gcc \
gfortran \
python3-dev \
wget \
libpng-dev \
git \
&& rm -rf /var/lib/apt/lists/*

RUN pip install pip==19.0.1
RUN pip install poetry==0.12.11

WORKDIR /gcgc
COPY ./pyproject.toml ./poetry.lock ./

RUN poetry config settings.virtualenvs.create false
RUN poetry install
RUN poetry cache:clear pypi --all

WORKDIR /gcgc
COPY ./ ./
RUN poetry install \
&& find . -name "*.pyc" -delete \
&& find . -name "__pycache__" -delete

ENTRYPOINT ["gcgc"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'

services:
gcgc:
build:
context: .
image: tshauck/gcgc

0 comments on commit 8774766

Please sign in to comment.