Skip to content

Commit 123ab32

Browse files
committed
Use Docker multi-stage builds
Use Docker multi-stage builds to build the receptor wheel on a stage and then install it on a later stage.
1 parent d247942 commit 123ab32

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)