Skip to content

Commit

Permalink
chore: Update Flask Dockerfile to use specific Python version and add…
Browse files Browse the repository at this point in the history
… Chinese localization support
  • Loading branch information
cbluebird committed Sep 24, 2024
1 parent 90a58f4 commit ee83045
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Framework/flask/3.0.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/labring-actions/devbox/python-3.12:409348
FROM ghcr.io/labring-actions/devbox/python-3.12:d4059a

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
12 changes: 12 additions & 0 deletions Framework/flask/update_cn_dockerfile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

DOCKERFILE=$1
echo "DOCKERFILE: $DOCKERFILE"
TMP_DOCKERFILE="${DOCKERFILE}tmp"
cp "$DOCKERFILE" "$TMP_DOCKERFILE"

sed -i '$i\
COPY /OS/debian-ssh/debian.sources /etc/apt/sources.list.d/debian.sources' "$TMP_DOCKERFILE"

sed -i '$i\
RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple' "$TMP_DOCKERFILE"
31 changes: 0 additions & 31 deletions yaml/Framework/flask/3.0.3/3.0.3.yaml

This file was deleted.

0 comments on commit ee83045

Please sign in to comment.