ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in / |
CMD ["/bin/bash"] |
ARG DEBIAN_FRONTEND=noninteractive |
ENV TZ=Asia/Ho_Chi_Minh |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get install -y wget tar unzip zip curl git sudo gnupg sqlite3 tzdata && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list && apt-get update && apt-get install -y docker-ce-cli && curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
WORKDIR /app |
COPY ./install.sh . # buildkit |
COPY ./update_app_version.sh . # buildkit |
COPY ./nextweb.service . # buildkit |
COPY ./1pctl . # buildkit |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c [ ! -f "./build/nextweb" ] && echo "nextweb does not exist" || echo "nextweb found" # buildkit |
COPY ./nextweb . # buildkit |
ARG PANELVER=V1.1.0-beta |
ENV PANELVER=V1.1.0-beta |
RUN |2 DEBIAN_FRONTEND=noninteractive PANELVER=V1.1.0-beta /bin/sh -c chmod +x /app/install.sh && chmod +x /app/update_app_version.sh && bash /app/install.sh && cp /app/nextweb.service /etc/systemd/system/nextweb.service && find /app -type f ! -name 'update_app_version.sh' -delete # buildkit |
WORKDIR / |
EXPOSE map[10086/tcp:{}] |
VOLUME [/var/run/docker.sock] |
CMD ["/bin/bash" "-c" "/usr/local/bin/nextweb & sleep 3 && kill $(jobs -p) || true && /app/update_app_version.sh && /usr/local/bin/nextweb"] |