Skip to content

Commit 18bbc13

Browse files
author
Steven Ringo
committed
Recreate Dockerfile
- Update to Python 3 - Simpler installation, remove docker-stacker script - Add apk 'make' package. Useful for CI/CD builds
1 parent 8489dbb commit 18bbc13

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

Diff for: Dockerfile

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
FROM python:2.7.10
2-
MAINTAINER Mike Barrett
3-
4-
COPY scripts/docker-stacker /bin/docker-stacker
5-
RUN mkdir -p /stacks && pip install --upgrade pip setuptools
6-
WORKDIR /stacks
7-
COPY . /tmp/stacker
8-
RUN pip install --upgrade pip
9-
RUN pip install --upgrade setuptools
10-
RUN cd /tmp/stacker && python setup.py install && rm -rf /tmp/stacker
11-
12-
ENTRYPOINT ["docker-stacker"]
13-
CMD ["-h"]
1+
FROM python:3.7-alpine
2+
RUN apk add --no-cache make
3+
WORKDIR /app
4+
COPY setup.cfg setup.py README.rst CHANGELOG.md ./
5+
COPY stacker/ ./stacker
6+
COPY scripts/ ./scripts
7+
RUN python setup.py install
8+
WORKDIR /project
9+
ENTRYPOINT ["stacker"]
10+
CMD ["--help"]

Diff for: scripts/docker-stacker

-11
This file was deleted.

0 commit comments

Comments
 (0)