-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathDockerfile
39 lines (30 loc) · 1.44 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.10-slim as builder
WORKDIR /home/v2rss
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN apt update -y \
&& apt install -y wget ffmpeg
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt install -y ./google-chrome-stable_current_amd64.deb \
&& rm ./google-chrome-stable_current_amd64.deb
COPY src ./
# -------------------------------------------------------------
# 删除中间缓存
# -------------------------------------------------------------
# docker container prune && docker image prune && docker images
# -------------------------------------------------------------
# 推送
# -------------------------------------------------------------
# 登陆账号
# docker login
# 清空本地镜像
# docker container prune && docker image rm -f $(docker image ls -aq) && docker images
# 创建镜像并打上标签
# docker build -t v2rss:daddy . && docker tag v2rss:daddy ech0sec/v2rss:daddy
# 推送至 Docker Hub
# docker push ech0sec/v2rss:daddy
# 一键推送
# docker container prune && docker image rm -f ech0sec/v2rss:daddy && docker build -t v2rss:daddy . && docker tag v2rss:daddy ech0sec/v2rss:daddy && docker push ech0sec/v2rss:daddy
# 一键部署
# ssh-keygen -t ed25519 -C "your_email@example.com"
# git clone git@github.com:QIN2DIM/v2rss-alpha.git && cd ./v2rss-alpha/src && chmod +x ./BusinessCentralLayer/chromedriver && python3 main.py synergy