Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker_casdoor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG}
COPY --from=builder /opt/casdoor /opt/casdoor
COPY work/app.conf /opt/casdoor/conf/app.conf
RUN set -eux \
&& apt-get -qq update -yq --fix-missing && apt-get -qq install -yq --no-install-recommends lsof \
&& mkdir -pv /root/web && ln -sf /opt/casdoor/web/build /root/web/ && ls -alh /opt/casdoor/web \
&& chmod +x /opt/casdoor/docker-entrypoint.sh && ls -alh /opt/casdoor

Expand Down
4 changes: 2 additions & 2 deletions docker_casdoor/work/script-setup-casdoor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ setup_casdoor() {
&& URL_CASDOOR="https://github.com/casdoor/casdoor/archive/refs/tags/v${VER_CASDOOR}.tar.gz" \
&& echo "Downloading casdoor version ${VER_CASDOOR} from: ${URL_CASDOOR}" \
&& install_tar_gz $URL_CASDOOR \
&& mv /opt/casdoor-* /tmp/casdoor && mkdir -pv /opt/casdoor/web /opt/casdoor/conf
&& mv /opt/casdoor-* /tmp/casdoor && mkdir -pv /opt/casdoor/web/build /opt/casdoor/conf

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

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