diff --git a/.drone.yml b/.drone.yml index 5c7f9f8e2..8fd91ebfc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -194,6 +194,7 @@ pipeline: pull: true secrets: [ docker_username, docker_password ] repo: gitea/docs + context: docs dockerfile: docs/Dockerfile tags: [ '${DRONE_BRANCH##release/v}' ] when: @@ -205,6 +206,7 @@ pipeline: pull: true secrets: [ docker_username, docker_password ] repo: gitea/docs + context: docs dockerfile: docs/Dockerfile tags: [ 'latest' ] when: diff --git a/docs/Dockerfile b/docs/Dockerfile index 35e4ce9a6..c69a9214e 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -16,7 +16,7 @@ EXPOSE 80 RUN apk add --no-cache wget mailcap ca-certificates COPY --from=build-env /go/bin/caddy /usr/sbin/caddy -COPY docs/docker/caddy.conf /etc/caddy.conf -COPY docs/public /srv/www +COPY docker/caddy.conf /etc/caddy.conf +COPY public /srv/www CMD ["/usr/sbin/caddy", "-conf", "/etc/caddy.conf"]