Skip to content

Commit 53a803f

Browse files
authored
Merge pull request #58 from elyezer/use-multi-stage-builds
Use Docker multi-stage builds
2 parents d247942 + 123ab32 commit 53a803f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packaging/docker/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
FROM python:3 AS builder
2+
COPY receptor setup.* LICENSE.md README.md /receptor/
3+
WORKDIR /receptor
4+
RUN python setup.py bdist_wheel
5+
16
FROM fedora:31
27

3-
ADD dist/receptor-*.whl /tmp/
8+
COPY --from=builder /receptor/dist/receptor-*.whl /tmp/
49
ADD https://github.com/krallin/tini/releases/latest/download/tini /bin/tini
510
ADD packaging/docker/entrypoint.sh /bin/entrypoint
611
ADD packaging/docker/receptor.conf /tmp/receptor.conf

0 commit comments

Comments
 (0)