28 lines
652 B
Docker
28 lines
652 B
Docker
FROM nginx:1.20.1-alpine AS builder
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=builder /etc/nginx/ /opt/confs/nginx
|
|
|
|
COPY ui/dependencies.sh /tmp
|
|
RUN chmod +x /tmp/dependencies.sh && \
|
|
/tmp/dependencies.sh && \
|
|
rm -f /tmp/dependencies.sh
|
|
|
|
COPY gen/ /opt/gen
|
|
#COPY entrypoint/ /opt/entrypoint
|
|
#COPY confs/global/ /opt/confs/global
|
|
COPY confs/site/ /opt/confs/site
|
|
COPY ui/* /opt/entrypoint/
|
|
COPY settings.json /opt
|
|
|
|
COPY ui/prepare.sh /tmp
|
|
chmod +x /tmp/prepare && \
|
|
/tmp/prepare.sh && \
|
|
rm -f /tmp/prepare.sh
|
|
|
|
EXPOSE 5000
|
|
|
|
WORKDIR /opt/entrypoint
|
|
ENV FLASK_APP entrypoint.py
|
|
ENTRYPOINT ["/usr/bin/python3", "-m", "flask", "run", "--host=0.0.0.0"] |