fix #109
pull/132/head
Jason Kulatunga 4 years ago
parent 7dbe108e33
commit ada3665ba0

@ -49,6 +49,9 @@ RUN chmod +x /scrutiny/bin/scrutiny && \
chmod +x /scrutiny/bin/scrutiny-collector-metrics && \ chmod +x /scrutiny/bin/scrutiny-collector-metrics && \
mkdir -p /scrutiny/web && \ mkdir -p /scrutiny/web && \
mkdir -p /scrutiny/config && \ mkdir -p /scrutiny/config && \
mkdir -p /scrutiny/jobber mkdir -p /scrutiny/jobber && \
chmod -R ugo+rwx /scrutiny/config && \
chmod -R ugo+rwx /scrutiny/jobber
CMD ["/init"] CMD ["/init"]

@ -29,9 +29,12 @@ EXPOSE 8080
WORKDIR /scrutiny WORKDIR /scrutiny
ENV PATH="/scrutiny/bin:${PATH}" ENV PATH="/scrutiny/bin:${PATH}"
RUN apt-get update && apt-get install -y ca-certificates curl && update-ca-certificates
COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny /scrutiny/bin/ COPY --from=backendbuild /go/src/github.com/analogj/scrutiny/scrutiny /scrutiny/bin/
COPY --from=frontendbuild /scrutiny/dist /scrutiny/web COPY --from=frontendbuild /scrutiny/dist /scrutiny/web
RUN chmod +x /scrutiny/bin/scrutiny && \ RUN chmod +x /scrutiny/bin/scrutiny && \
mkdir -p /scrutiny/web && \ mkdir -p /scrutiny/web && \
mkdir -p /scrutiny/config mkdir -p /scrutiny/config && \
chmod -R ugo+rwx /scrutiny/config
CMD ["/scrutiny/bin/scrutiny", "start"] CMD ["/scrutiny/bin/scrutiny", "start"]

Loading…
Cancel
Save