fix: Update appmanager postrun dockerfile to fix build problem.

This commit is contained in:
twwy 2023-03-07 18:16:12 +08:00
parent ce5120ea64
commit 6f9149624b
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ target_appmanager_postrun(){
echo "-- build appmanager postrun --" >&2
TMP_DOCKERFILE="/tmp/${RANDOM}.dockerfile"
envsubst < $SW_ROOT/paas/appmanager/Dockerfile_postrun_sreworks.tpl > ${TMP_DOCKERFILE}
docker build -t sw-paas-appmanager-postrun:$tag -f ${TMP_DOCKERFILE} $SW_ROOT/paas/appmanager
docker build -t sw-paas-appmanager-postrun:$tag -f ${TMP_DOCKERFILE} $SW_ROOT
docker tag sw-paas-appmanager-postrun:$tag sw-paas-appmanager-postrun:latest
fi
if [ -n "$PUSH_REPO" ]; then

View File

@ -1,6 +1,6 @@
FROM sw-postrun:latest
COPY ../../plugins /app/plugins
COPY ./APP-META-PRIVATE/postrun /app/postrun
COPY ./plugins /app/plugins
COPY ./paas/appmanager/APP-META-PRIVATE/postrun /app/postrun
ENV SREWORKS_INIT "enable"
RUN sed -i 's/dl-cdn.alpinelinux.org/${APK_REPO_DOMAIN}/g' /etc/apk/repositories
RUN pip config set global.index-url ${PYTHON_PIP} && pip config set global.trusted-host ${PYTHON_PIP_DOMAIN}