Skip to content

Commit 752d614

Browse files
committed
Improve efficiency of Dockerfile by taking better advantage of layering
1 parent 5a14998 commit 752d614

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ mqttwarn changelog
66
in progress
77
===========
88

9-
- [build] Fix unwanted cache hits when automatically building Docker images
9+
- [build] Fix unwanted cache hits when automatically building Docker images. Thanks, Gergő!
1010

1111

1212
2021-06-03 0.21.0
1313
=================
1414
- [xmpp] Add slixmpp plugin and documentation. Thanks, Remi!
1515
- [mysql] Fix unicode vs byte issue for Python 3. Thanks, Filip!
16-
- [http] Fix to send whole message. Thanks, Gergo!
16+
- [http] Fix to send whole message. Thanks, Gergő!
1717
- [slack] Replace ``slacker`` with ``slack-sdk``. Thanks, mcdamo!
1818
- [mysql] Fix specified port bug. Thanks, Hyman!
1919
- [launch] Add new service ``launch``. Flexible arguments for command,

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
#
88
FROM python:3.9-slim-buster
99

10-
# Install mqttwarn
11-
COPY . /src
12-
RUN pip install /src
13-
1410
# Create /etc/mqttwarn
1511
RUN mkdir -p /etc/mqttwarn
1612
WORKDIR /etc/mqttwarn
@@ -28,5 +24,9 @@ VOLUME ["/etc/mqttwarn"]
2824
# Set default configuration path
2925
ENV MQTTWARNINI="/etc/mqttwarn/mqttwarn.ini"
3026

27+
# Install mqttwarn
28+
COPY . /src
29+
RUN pip install /src
30+
3131
# Invoke program
3232
CMD mqttwarn

0 commit comments

Comments
 (0)