mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-08 00:50:28 +08:00
fix: miss ca-certificates in docker image (#491)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
This commit is contained in:
@ -12,7 +12,9 @@ RUN yarn install && yarn run build
|
|||||||
|
|
||||||
|
|
||||||
FROM debian:latest AS ALLINONE
|
FROM debian:latest AS ALLINONE
|
||||||
RUN apt update && apt install -y mariadb-server mariadb-client&&mkdir -p web/build && chmod 777 /tmp
|
RUN apt update
|
||||||
|
RUN apt install -y ca-certificates && update-ca-certificates
|
||||||
|
RUN apt install -y mariadb-server mariadb-client && mkdir -p web/build && chmod 777 /tmp
|
||||||
LABEL MAINTAINER="https://casdoor.org/"
|
LABEL MAINTAINER="https://casdoor.org/"
|
||||||
COPY --from=BACK /go/src/casdoor/ ./
|
COPY --from=BACK /go/src/casdoor/ ./
|
||||||
COPY --from=BACK /usr/bin/wait-for-it ./
|
COPY --from=BACK /usr/bin/wait-for-it ./
|
||||||
@ -26,6 +28,7 @@ mysqladmin -u root password ${MYSQL_ROOT_PASSWORD} &&\
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN sed -i 's/https/http/' /etc/apk/repositories
|
RUN sed -i 's/https/http/' /etc/apk/repositories
|
||||||
RUN apk add curl
|
RUN apk add curl
|
||||||
|
RUN apk add ca-certificates && update-ca-certificates
|
||||||
LABEL MAINTAINER="https://casdoor.org/"
|
LABEL MAINTAINER="https://casdoor.org/"
|
||||||
|
|
||||||
COPY --from=BACK /go/src/casdoor/ ./
|
COPY --from=BACK /go/src/casdoor/ ./
|
||||||
@ -33,4 +36,3 @@ COPY --from=BACK /usr/bin/wait-for-it ./
|
|||||||
RUN mkdir -p web/build && apk add --no-cache bash coreutils
|
RUN mkdir -p web/build && apk add --no-cache bash coreutils
|
||||||
COPY --from=FRONT /web/build /web/build
|
COPY --from=FRONT /web/build /web/build
|
||||||
CMD ./server
|
CMD ./server
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user