Skip to content

Commit 7e35dc7

Browse files
authored
Merge pull request #502 from jpmens/amo/fix-docker
Fix Dockerfile once more
2 parents e6d6ca1 + e250da5 commit 7e35dc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ WORKDIR /etc/mqttwarn
1515
RUN groupadd -r mqttwarn && useradd -r -g mqttwarn mqttwarn
1616
RUN chown -R mqttwarn:mqttwarn /etc/mqttwarn
1717

18+
# Install mqttwarn
19+
COPY . /src
20+
RUN pip install /src
21+
1822
# Make process run as "mqttwarn" user
1923
USER mqttwarn
2024

@@ -24,9 +28,5 @@ VOLUME ["/etc/mqttwarn"]
2428
# Set default configuration path
2529
ENV MQTTWARNINI="/etc/mqttwarn/mqttwarn.ini"
2630

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

0 commit comments

Comments
 (0)