mirror of https://github.com/01-edu/public.git
Clean Dockerfile & Clone repositories with HTTPS
This commit is contained in:
parent
9daf18532d
commit
4627cd898b
|
@ -1,10 +1,11 @@
|
|||
FROM buildkite/puppeteer:latest
|
||||
FROM buildkite/puppeteer
|
||||
|
||||
ENV GIT_TERMINAL_PROMPT=0
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y git
|
||||
COPY --from=mkcert-ca . /usr/local/share/ca-certificates
|
||||
RUN update-ca-certificates
|
||||
WORKDIR /app
|
||||
COPY ./dom .
|
||||
COPY ./subjects ./subjects
|
||||
RUN ls -la
|
||||
COPY dom .
|
||||
COPY subjects ./subjects
|
||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]
|
||||
|
|
|
@ -11,7 +11,7 @@ cd student
|
|||
|
||||
if test "$REPOSITORY"; then
|
||||
password=$(cat)
|
||||
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
|
||||
git clone --quiet --depth=1 --shallow-submodules https://root:"${password}"@"$REPOSITORY" .
|
||||
else
|
||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
|
||||
mkdir -p "$(dirname "$first_file")"
|
||||
|
|
|
@ -11,7 +11,7 @@ cd src/student
|
|||
|
||||
if test "$REPOSITORY"; then
|
||||
password=$(cat)
|
||||
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
|
||||
git clone --quiet --depth=1 --shallow-submodules https://root:"${password}"@"$REPOSITORY" .
|
||||
else
|
||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
|
||||
mkdir -p "$(dirname "$first_file")"
|
||||
|
|
|
@ -2,6 +2,8 @@ FROM node:14-alpine
|
|||
|
||||
ENV GIT_TERMINAL_PROMPT=0
|
||||
RUN apk add --no-cache git
|
||||
COPY --from=mkcert-ca . /usr/local/share/ca-certificates
|
||||
RUN update-ca-certificates
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]
|
||||
|
|
|
@ -11,7 +11,7 @@ cd student
|
|||
|
||||
if test "$REPOSITORY"; then
|
||||
password=$(cat)
|
||||
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
|
||||
git clone --quiet --depth=1 --shallow-submodules https://root:"${password}"@"$REPOSITORY" .
|
||||
else
|
||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
|
||||
mkdir -p "$(dirname "$first_file")"
|
||||
|
|
|
@ -10,7 +10,7 @@ cd student
|
|||
|
||||
if test "$REPOSITORY"; then
|
||||
password=$(cat)
|
||||
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
|
||||
git clone --quiet --depth=1 --shallow-submodules https://root:"${password}"@"$REPOSITORY" .
|
||||
else
|
||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
|
||||
mkdir -p "$(dirname "$first_file")"
|
||||
|
|
Loading…
Reference in New Issue