23 lines
577 B
Docker
23 lines
577 B
Docker
FROM centos:centos7
|
|
MAINTAINER Jimmi Dyson <jimmidyson@gmail.com>
|
|
ENTRYPOINT ["/kuisp"]
|
|
CMD [ "-p", "9090", \
|
|
"-c", "/site/osconsole/config.js.tmpl=/site/osconsole/config.js", \
|
|
"--default-page=/index.html", \
|
|
"--max-age=24h", \
|
|
"--compress" ]
|
|
EXPOSE 9090
|
|
|
|
ENV KUISP_VERSION 0.10
|
|
|
|
RUN yum install -y tar && \
|
|
yum clean all && \
|
|
curl -L https://github.com/jimmidyson/kuisp/releases/download/v${KUISP_VERSION}/kuisp-${KUISP_VERSION}-linux-amd64.tar.gz | \
|
|
tar xzv
|
|
|
|
COPY site /site/
|
|
RUN chmod 777 /site/osconsole/
|
|
|
|
WORKDIR /site/
|
|
USER nobody
|