fix:修改dockerfile

main
鱼星 3 months ago
parent 3bda1ef628
commit 50552770aa

@ -31,7 +31,17 @@ RUN apt-get update \
COPY --from=go-builder /out/1panel-core /usr/local/bin/1panel-core
COPY --from=go-builder /out/1panel-agent /usr/local/bin/1panel-agent
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
COPY docker/1pctl /usr/local/bin/1pctl
RUN printf '%s\n' \
'#!/usr/bin/env bash' \
'BASE_DIR=/opt' \
'ORIGINAL_PORT=9999' \
'ORIGINAL_VERSION=v2.0.0' \
'ORIGINAL_USERNAME=admin' \
'ORIGINAL_PASSWORD=admin123' \
'ORIGINAL_ENTRANCE=admin' \
'LANGUAGE=zh' \
'CHANGE_USER_INFO=' \
> /usr/local/bin/1pctl
COPY core/cmd/server/conf/app.yaml /usr/local/share/1panel/app.yaml
RUN chmod 755 /usr/local/bin/entrypoint.sh /usr/local/bin/1pctl \
&& mkdir -p /opt/1panel/conf

Loading…
Cancel
Save