Merge branch 'dev' into 'master'
fix: refactor Dockerfile to improve build See merge request erichardson/py-eagle-mqtt!2
This commit was merged in pull request #3.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
FROM python:3.9.4-alpine3.13
|
||||
|
||||
LABEL maintainer="Evan Richardson (evanrich81[at]gmail.com)"
|
||||
#LABEL version="1.7.0"
|
||||
LABEL version="1.7.0"
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
COPY requirements.txt /app
|
||||
COPY ./src/conf/logrotate/tHome /etc/logrotate.d/
|
||||
ENV PYTHONPATH=/app/src/python
|
||||
RUN apk --update add --no-cache logrotate \
|
||||
&& pip3 install --no-cache-dir --upgrade pip \
|
||||
&& pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . /app
|
||||
CMD ["/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]
|
||||
|
||||
EXPOSE 22042
|
||||
|
||||
Reference in New Issue
Block a user