Skip to content

Commit

Permalink
Merge pull request #148 from aipeach/patch-4
Browse files Browse the repository at this point in the history
Update Docker
  • Loading branch information
AirportR authored Jan 4, 2024
2 parents 66d6f56 + 88fc170 commit e745f94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9.18-slim-bookworm AS compile-image
FROM python:3.11.7-slim-bookworm AS compile-image

RUN apt-get update && \
apt-get install --no-install-recommends -y \
Expand All @@ -11,7 +11,7 @@ ADD https://raw.githubusercontent.com/AirportR/FullTclash/dev/requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt && \
pip3 install --no-cache-dir supervisor

FROM python:3.9.18-slim-bookworm
FROM python:3.11.7-slim-bookworm

ENV TZ=Asia/Shanghai
ENV admin=12345678
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9.18-alpine3.18 AS compile-image
FROM python:3.11.7-alpine3.19 AS compile-image

RUN apk add --no-cache \
gcc g++ make libffi-dev libstdc++ gcompat libgcc build-base py3-pybind11-dev abseil-cpp-dev re2-dev ca-certificates
Expand All @@ -10,7 +10,7 @@ ADD https://raw.githubusercontent.com/AirportR/FullTclash/dev/requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt && \
pip3 install --no-cache-dir supervisor

FROM python:3.9.18-alpine3.18
FROM python:3.11.7-alpine3.19

ENV TZ=Asia/Shanghai
ENV admin=12345678
Expand Down
3 changes: 2 additions & 1 deletion docker/fulltclash.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[program:fulltclash]
command=python3 /app/main.py
command=python3 -u /app/main.py
directory=/app
redirect_stderr=true
stdout_logfile=/var/log/fulltclash.log
2 changes: 1 addition & 1 deletion docker/update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
source ~/.bashrc
. /etc/profile

git_version=$(git --git-dir='/app/.git' --work-tree='/app' rev-parse HEAD)
last_version=$(curl -Ls "https://api.github.com/repos/AirportR/FullTclash/commits/dev" | jq .sha | sed -E 's/.*"([^"]+)".*/\1/')
Expand Down

0 comments on commit e745f94

Please sign in to comment.