Skip to content

Commit 1fabf5a

Browse files
authored
fix casdoor build (#36)
1 parent 71cadfe commit 1fabf5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docker_casdoor/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG}
1818
COPY --from=builder /opt/casdoor /opt/casdoor
1919
COPY work/app.conf /opt/casdoor/conf/app.conf
2020
RUN set -eux \
21+
&& apt-get -qq update -yq --fix-missing && apt-get -qq install -yq --no-install-recommends lsof \
2122
&& mkdir -pv /root/web && ln -sf /opt/casdoor/web/build /root/web/ && ls -alh /opt/casdoor/web \
2223
&& chmod +x /opt/casdoor/docker-entrypoint.sh && ls -alh /opt/casdoor
2324

docker_casdoor/work/script-setup-casdoor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ setup_casdoor() {
99
&& URL_CASDOOR="https://github.com/casdoor/casdoor/archive/refs/tags/v${VER_CASDOOR}.tar.gz" \
1010
&& echo "Downloading casdoor version ${VER_CASDOOR} from: ${URL_CASDOOR}" \
1111
&& install_tar_gz $URL_CASDOOR \
12-
&& mv /opt/casdoor-* /tmp/casdoor && mkdir -pv /opt/casdoor/web /opt/casdoor/conf
12+
&& mv /opt/casdoor-* /tmp/casdoor && mkdir -pv /opt/casdoor/web/build /opt/casdoor/conf
1313

1414
echo "--> Building Backend..." \
1515
&& cd /tmp/casdoor && ./build.sh \
@@ -24,7 +24,7 @@ setup_casdoor() {
2424
&& cd /tmp && corepack enable && yarn -v \
2525
&& cd /tmp/casdoor/web \
2626
&& yarn set version berry && yarn install && yarn run build \
27-
&& mv ./build*/* /opt/casdoor/web/
27+
&& mv ./build*/* /opt/casdoor/web/build/
2828
# && yarn install --frozen-lockfile && yarn run build \
2929

3030
echo "--> Finished building casdoor to /opt/casdoor!" \

0 commit comments

Comments
 (0)