Skip to content
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
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM alpine:3.2
FROM alpine:3.7
MAINTAINER Ivan Pedrazas <[email protected]>

RUN apk add --update \
python \
python-dev \
py-pip \
g++ && \
pip install cookiecutter && \
apk del g++ py-pip python-dev && \
rm -rf /var/cache/apk/*
git \
python \
python-dev \
py-pip \
g++ && \
pip install cookiecutter && \
apk del g++ py-pip python-dev && \
rm -rf /var/cache/apk/* && \
printf "#!/bin/sh \ncookiecutter -o \$OUT_DIR \$TEMPLATE" > start.sh && \
chmod +x start.sh


ENTRYPOINT [ "cookiecutter" ]
CMD ["./start.sh"]
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@

Cookiecutter in a Docker container.

This almost works. I'm just stuck on figuring this out:

* https://github.com/audreyr/docker-cookiecutter/issues/1
This writes output to the current working dir.

Docker Hub repo: https://hub.docker.com/r/cookiecutter/cookiecutter/

# Usage

```
docker run -e LC_ALL=C.UTF-8 -t cookiecutter/cookiecutter gh:pydanny/cookiecutter-django
A sample command:

```console
docker run -it --rm \
-e LC_ALL=C.UTF-8 \
-e TEMPLATE=gh:pydanny/cookiecutter-django \
-e OUT_DIR=/cookie \
-v $PWD:/cookie \
cookiecutter/cookiecutter
```

# Contributing
Expand Down