1 Star 0 Fork 0

jacky/giv_tcp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile_old 2.87 KB
一键复制 编辑 原始数据 按行查看 历史
britkat1980 提交于 2024-07-12 00:08 . 2.4.420
# set base image (host OS)
FROM python:3.11-rc-alpine
RUN apk add mosquitto
RUN apk add curl
RUN apk add --update npm
RUN npm install -g serve
RUN apk add git
RUN apk add tzdata
RUN apk add musl-utils
RUN apk add xsel
RUN apk add redis
RUN apk add npm
RUN apk add nginx && mkdir -p /run/nginx
# set the working directory in the container
WORKDIR /app
# copy the dependencies file to the working directory
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY givtcp-vuejs/package.json ./config_frontend/package.json
RUN cd /app/config_frontend && npm install
COPY givtcp-vuejs ./config_frontend
RUN cd /app/config_frontend && npm run build
COPY ingress.conf /etc/nginx/http.d/
RUN rm /etc/nginx/http.d/default.conf
# copy the content of the local src directory to the working directory
COPY GivTCP/ ./GivTCP
COPY WebDashboard ./WebDashboard
COPY givenergy_modbus/ /usr/local/lib/python3.11/site-packages/givenergy_modbus
COPY GivTCP/givenergy_modbus_async/ /usr/local/lib/python3.11/site-packages/givenergy_modbus_async
COPY startup.py startup.py
COPY redis.conf redis.conf
COPY settings.json /app/settings.json
COPY index.html /app/index.html
ENV NUMINVERTORS=1
ENV INVERTOR_IP_1=""
ENV INVERTOR_NAME_1="Inv1"
ENV NUMBATTERIES_1=1
ENV INVERTOR_AIO_1=False
ENV INVERTOR_AC_1=True
ENV INVERTOR_IP_2=""
ENV INVERTOR_NAME_2="Inv2"
ENV NUMBATTERIES_2=1
ENV INVERTOR_AIO_2=False
ENV INVERTOR_AC_2=True
ENV INVERTOR_IP_3=""
ENV INVERTOR_NAME_3="Inv3"
ENV NUMBATTERIES_3=1
ENV INVERTOR_AIO_3=False
ENV INVERTOR_AC_3=True
ENV INVERTOR_IP_4=""
ENV INVERTOR_NAME_4="Inv4"
ENV NUMBATTERIES_4=1
ENV INVERTOR_AIO_4=False
ENV INVERTOR_AC_4=True
ENV MQTT_OUTPUT=True
ENV MQTT_ADDRESS=""
ENV MQTT_USERNAME=""
ENV MQTT_PASSWORD=""
ENV MQTT_TOPIC=""
ENV MQTT_TOPIC_2=""
ENV MQTT_TOPIC_3=""
ENV MQTT_PORT=1883
ENV MQTT_RETAIN=False
ENV LOG_LEVEL="Info"
ENV PRINT_RAW=True
ENV SELF_RUN=True
ENV SELF_RUN_LOOP_TIMER=30
ENV SELF_RUN_LOOP_TIMER_FULL=120
ENV INFLUX_OUTPUT=False
ENV INFLUX_URL=""
ENV INFLUX_TOKEN=""
ENV INFLUX_BUCKET=""
ENV INFLUX_ORG=""
ENV HA_AUTO_D=True
ENV HADEVICEPREFIX="GivTCP"
ENV HADEVICEPREFIX_2="GivTCP2"
ENV HADEVICEPREFIX_3="GivTCP3"
ENV HADEVICEPREFIX_4="GivTCP4"
ENV PYTHONPATH="/app"
ENV DAYRATE=0.395
ENV NIGHTRATE=0.155
ENV EXPORTRATE=0.04
ENV DYNAMICTARIFF=False
ENV DAYRATESTART="04:30"
ENV NIGHTRATESTART="00:30"
ENV TZ="Europe/London"
ENV WEB_DASH=False
ENV WEB_DASH_PORT=3000
ENV CACHELOCATION="/config/GivTCP"
ENV DATASMOOTHER="medium"
ENV QUEUE_RETRIES=2
ENV SMARTTARGET=False
ENV GEAPI=""
ENV SOLCASTAPI=""
ENV SOLCASTSITEID=""
ENV SOLCASTSITEID2=""
ENV PALM_WINTER="01,02,03,10,11,12"
ENV PALM_SHOULDER="04,05,09"
ENV PALM_MIN_SOC_TARGET=25
ENV PALM_MAX_SOC_TARGET=45
ENV PALM_BATT_RESERVE=4
ENV PALM_BATT_UTILISATION=0.85
ENV PALM_WEIGHT=35
ENV LOAD_HIST_WEIGHT="1"
ENV EVC_ENABLE=False
ENV EVC_IP_ADDRESS=""
ENV EVC_SELF_RUN_TIMER=5
EXPOSE 1883 6379 8099
CMD ["python3", "/app/startup.py"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jacky1995/giv_tcp.git
git@gitee.com:jacky1995/giv_tcp.git
jacky1995
giv_tcp
giv_tcp
dev3

搜索帮助

0d507c66 1850385 C8b1a773 1850385