1
0
Fork 0

Refactor Dockerfile

pull/5/head
Ambrose Chua 2017-10-09 18:48:28 +08:00
parent 1e556190ae
commit b3c140300b
1 changed files with 7 additions and 7 deletions

View File

@ -24,14 +24,14 @@ RUN /usr/bin/caddy -version
FROM scratch
COPY --from=fetch /usr/bin/caddy /caddy
COPY --from=fetch /usr/bin/caddy /bin/caddy
COPY Caddyfile /etc/Caddyfile
ENV CADDYPATH=/etc/.caddy
VOLUME /etc/.caddy
EXPOSE 80 443
VOLUME /.caddy
WORKDIR /srv
COPY Caddyfile /Caddyfile
COPY index.html /srv/index.html
ENTRYPOINT ["/caddy"]
CMD ["--conf", "/Caddyfile", "--log", "stdout"]
ENTRYPOINT ["/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout"]