Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ARC-MX committed Jun 2, 2024
1 parent 7bfca5b commit 47d0623
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Dockerfile-for-github-action
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ ENV PYTHONUNBUFFERED 1

WORKDIR /app

COPY scripts/* /app/
# COPY scripts/* /app/
COPY ./requirements.txt /tmp/requirements.txt

RUN apt-get --allow-releaseinfo-change update \
&& apt-get install -y --no-install-recommends jq chromium chromium-driver tzdata\
&& ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean

RUN cd /tmp \
Expand All @@ -25,7 +25,7 @@ RUN cd /tmp \
&& pip cache purge \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/log/*

ENV LANG C.UTF-8

CMD ["python"]
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# ⚡️国家电网电力获取

[![Docker Image CI](https://github.com/renhaiidea/sgcc_electricity/actions/workflows/docker-image.yml/badge.svg)](https://github.com/renhaiidea/sgcc_electricity/actions/workflows/docker-image.yml)
[![Image Size](https://img.shields.io/docker/image-size/renhai/sgcc_electricity)](https://hub.docker.com/r/renhai/sgcc_electricity)
[![Docker Pull](https://img.shields.io/docker/pulls/renhai/sgcc_electricity?color=%2348BB78&logo=docker&label=pulls)](https://hub.docker.com/r/renhai/sgcc_electricity)
[![Docker Image CI](https://github.com/ARC-MX/sgcc_electricity_new/actions/workflows/docker-image.yml/badge.svg)](https://github.com/ARC-MX/sgcc_electricity_new/actions/workflows/docker-image.yml)
[![Image Size](https://img.shields.io/docker/image-size/arcw/sgcc_electricity)](https://hub.docker.com/r/arcw/sgcc_electricity)
[![Docker Pull](https://img.shields.io/docker/pulls/arcw/sgcc_electricity?color=%2348BB78&logo=docker&label=pulls)](https://hub.docker.com/r/arcw/sgcc_electricity)

<p align="center">
<img src="assets/image-20230730135540291.png" alt="mini-graph-card" width="400">
Expand Down Expand Up @@ -36,7 +36,7 @@

> - `linux/amd64`:适用于 x86-64(amd64)架构的 Linux 系统,例如windows电脑。
> - `linux/arm64`:适用于 ARMv8 架构的 Linux 系统,例如树莓派,N1盒子。
> - 其他架构比如32位arm/v7,不提供docker镜像,可参考[github仓库](https://github.com/renhaiidea/sgcc_electricity.git)[Dockerfile-for-github-action-armv7](%B9%E9%B5%B5%2FDockerfile-for-github-action-armv7)自行部署。
> - 其他架构比如32位arm/v7,不提供docker镜像,可参考[github仓库](https://github.com/ARC-MX/sgcc_electricity_new.git)[Dockerfile-for-github-action-armv7](%B9%E9%B5%B5%2FDockerfile-for-github-action-armv7)自行部署。
## 二、实现流程

Expand Down Expand Up @@ -118,7 +118,10 @@
- .env
depends_on:
- mongo
image: renhai/sgcc_electricity:latest
image: arcw/sgcc_electricity:latest # armv8
# build:
# context: .
# dockerfile: Dockerfile
container_name: sgcc_electricity
networks:
sgcc_network:
Expand Down

0 comments on commit 47d0623

Please sign in to comment.