Skip to content

安装Photopea

This image is based on https://git.nixnet.services/DUOLabs333/Photopea-Offline.git

The image uses Alpine Linux.

Dockerfile文件

FROM alpine

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

WORKDIR /var/run/photopea

RUN apk update && apk upgrade

RUN apk add git python3

RUN git clone --progress --verbose https://git.nixnet.services/DUOLabs333/Photopea-Offline.git .

EXPOSE 80

ENTRYPOINT ["python3", "-m", "http.server", "--directory", "www.photopea.com", "80"]

生成image

docker build -t registry.cn-beijing.aliyuncs.com/wulong1104/photopea:latest .

启动dokcer

docker run -d --name photopea \
-p 0.0.0.0:80:80 --restart=unless-stopped \
-e TZ="Asia/Shanghai" \
registry.cn-beijing.aliyuncs.com/wulong1104/photopea:latest