Skip to content

Commit 194ab29

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 194ab29

File tree

3 files changed

+10
-25
lines changed

3 files changed

+10
-25
lines changed

Dockerfile

Lines changed: 10 additions & 13 deletions
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"]

scripts/docker-stacker

Lines changed: 0 additions & 11 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
scripts = [
3434
"scripts/compare_env",
35-
"scripts/docker-stacker",
3635
"scripts/stacker.cmd",
3736
"scripts/stacker",
3837
]

0 commit comments

Comments
 (0)