fix dockerfile

This commit is contained in:
jxxghp 2023-06-07 13:36:46 +08:00
parent f48e85c4f9
commit 0c2bd82a0a
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ from pydantic import BaseSettings
class Settings(BaseSettings): class Settings(BaseSettings):
# 项目名称 # 项目名称
PROJECT_NAME = "NASbot" PROJECT_NAME = "MoviePilot"
# API路径 # API路径
API_V1_STR: str = "/api/v1" API_V1_STR: str = "/api/v1"
# 密钥 # 密钥
@ -26,7 +26,7 @@ class Settings(BaseSettings):
# 超级管理员密码 # 超级管理员密码
SUPERUSER_PASSWORD: str = "password" SUPERUSER_PASSWORD: str = "password"
# API密钥需要更换 # API密钥需要更换
API_TOKEN: str = "nasbot" API_TOKEN: str = "moviepilot"
# 网络代理 # 网络代理
PROXY_HOST: str = None PROXY_HOST: str = None
# 媒体信息搜索来源 # 媒体信息搜索来源

View File

@ -8,7 +8,7 @@ RUN apk add --no-cache --virtual .build-deps \
python3 \ python3 \
py3-pip \ py3-pip \
&& ln -sf /usr/bin/python3 /usr/bin/python \ && ln -sf /usr/bin/python3 /usr/bin/python \
&& pip install --upgrade pip setuptools wheel \ && python3 -m pip install --upgrade pip setuptools wheel \
&& apk del --purge .build-deps \ && apk del --purge .build-deps \
&& rm -rf /tmp/* /root/.cache /var/cache/apk/* && rm -rf /tmp/* /root/.cache /var/cache/apk/*
ENV LANG="C.UTF-8" \ ENV LANG="C.UTF-8" \
@ -17,9 +17,9 @@ ENV LANG="C.UTF-8" \
PUID=0 \ PUID=0 \
PGID=0 \ PGID=0 \
UMASK=000 \ UMASK=000 \
WORKDIR="/NASbot" \ WORKDIR="/MoviePilot" \
CONFIG_DIR="/config" \ CONFIG_DIR="/config" \
API_TOKEN="nasbot" \ API_TOKEN="moviepilot" \
LIBRARY_PATH="" \ LIBRARY_PATH="" \
SUPERUSER="admin" \ SUPERUSER="admin" \
SUPERUSER_PASSWORD="password" \ SUPERUSER_PASSWORD="password" \
@ -42,9 +42,9 @@ ENV LANG="C.UTF-8" \
FILTER_RULE="" \ FILTER_RULE="" \
TRANSFER_TYPE="copy" \ TRANSFER_TYPE="copy" \
DOUBAN_USER_IDS="" DOUBAN_USER_IDS=""
COPY . /${WORKDIR} COPY . ${WORKDIR}
WORKDIR ${WORKDIR} WORKDIR ${WORKDIR}
RUN pip install -r requirements.txt \ RUN python3 -m pip install -r requirements.txt \
&& echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf \ && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf \
&& echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf
EXPOSE 3001 EXPOSE 3001