From 83cd3bf0f08becf1d77a1c1c5b499a4d90769421 Mon Sep 17 00:00:00 2001 From: a squid <34890855+squi-ddy@users.noreply.github.com> Date: Wed, 27 Dec 2023 10:27:39 +0800 Subject: [PATCH] fix dockerfile again --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8006b2..21e0e38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,11 @@ FROM busybox:musl AS deploy EXPOSE 80 +COPY . /data/www +RUN mv /data/www/httpd.conf /data/httpd.conf + RUN adduser -D static USER static WORKDIR /home/static -COPY . /data/www -RUN mv /data/www/httpd.conf /data/httpd.conf CMD ["busybox", "httpd", "-f", "-v", "-p", "80", "-h", "/data/www", "-c", "/data/httpd.conf"]