fix: 修复node没有打包进去的问题

This commit is contained in:
danial
2024-10-21 01:28:02 +08:00
parent a3f6f91251
commit cbd4e72d64
3 changed files with 12 additions and 12 deletions

View File

@@ -28,8 +28,9 @@ RUN wget https://nodejs.org/dist/v16.13.0/node-v16.13.0-linux-x64.tar.gz && \
RUN apt-get update && apt-get install -y libgl1-mesa-glx libglib2.0-0
# python环境包
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple gunicorn gevent
RUN pip3 install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple gunicorn gevent && \
pip3 install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ && \
npm install
ENV FLASK_APP=app.py

View File

@@ -1,5 +1,5 @@
services:
kami_backend:
kami_jd_bind_card:
build:
context: .
dockerfile: Dockerfile
@@ -8,14 +8,13 @@ services:
restart: always
ports:
- "25312:8189"
volumes:
- /data/kami/kami_backend/log/:/app/resource/log/
- /data/kami/kami_backend/manifest/config/:/app/manifest/config/
networks:
- 1panel-network
# volumes:
# - /data/kami/kami_jd_bind_card/log/:/app/resource/log/
# networks:
# - 1panel-network
labels:
createdBy: Developer
networks:
1panel-network:
external: true
# networks:
# 1panel-network:
# external: true

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "jd_bind_card",
"name": "kami_jd_bind_card",
"lockfileVersion": 2,
"requires": true,
"packages": {