1 Star 0 Fork 0

jacky/giv_tcp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
britkat1980 提交于 2024-08-18 14:35 . v3 final beta
# 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 /app/ingress/package.json
RUN cd /app/ingress && npm install
COPY givtcp-vuejs ./ingress
RUN cd /app/ingress && npm run build && mv dist/index.html dist/config.html && cp -a dist/. /app/ingress/
COPY ingress.conf /etc/nginx/http.d/
COPY ingress_no_ssl.conf /app/ingress_no_ssl.conf
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 api.json ./GivTCP/api.json
COPY startup_2.py startup.py
COPY redis.conf redis.conf
COPY settings.json ./settings.json
COPY ingress/ ./ingress
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