docker-compose 模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
445 B

3 years ago
ARG CENTOS_VERSION
FROM centos:${CENTOS_VERSION}
LABEL maintainer="ifui <ifui@foxmail.com>"
RUN groupadd -f www && useradd -g www www
ARG BAOTA_INSTALL_PATH
# install pkg
RUN yum install -y wget \
&& yum install -y ca-certificates \
&& yum install -y gd
# install baota
RUN set -eux \
&& wget -O install_panel.sh ${BAOTA_INSTALL_PATH} \
&& echo y | sh install_panel.sh
COPY app.sh /
RUN chmod 777 /app.sh
CMD [ "/app.sh" ]