-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: release new version fix #160
- Loading branch information
Showing
3 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
FROM python:3.10-slim | ||
|
||
MAINTAINER timerring | ||
LABEL maintainer="timerring" | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
COPY ./assets/msyh.ttf /usr/share/fonts/msyh.ttf | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
RUN apt-get update && apt-get install vim -y \ | ||
&& apt-get install -y ffmpeg \ | ||
&& apt-get install -y procps \ | ||
&& apt-get install lsof -y | ||
&& apt-get install lsof -y \ | ||
&& pip install -r requirements.txt | ||
|
||
ENV BILIVE_PATH=/app | ||
ENV TZ="Asia/Shanghai" | ||
|
||
EXPOSE 2233 | ||
|
||
CMD ["nohup", "python", "-m", "src.upload.upload", ">", "/app/logs/uploadLog/upload-$(date +%Y%m%d-%H%M%S).log", "2>&1", "&"] | ||
CMD ["python", "-m", "src.upload.upload"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters