Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
24 lines
723 B
Docker
24 lines
723 B
Docker
FROM alpine:3.22.1 AS build
|
|
RUN apk add python3 py3-pip git build-base python3-dev libffi-dev openssl-dev
|
|
WORKDIR /opt
|
|
RUN pwd
|
|
RUN python3 -m venv env
|
|
RUN ls -la
|
|
RUN git clone https://g.nunks.org/nunks/asknavidrome-cafofo.git
|
|
RUN ls -la asknavidrome-cafofo
|
|
WORKDIR /opt/asknavidrome-cafofo
|
|
RUN pwd
|
|
RUN ls -la
|
|
RUN source ../env/bin/activate && pip --no-cache-dir install wheel && pip --no-cache-dir install -r skill/requirements-docker.txt
|
|
|
|
FROM alpine:3.22.1
|
|
RUN apk add python3
|
|
COPY --from=build /opt/env /opt/env
|
|
COPY --from=build /opt/asknavidrome-cafofo/skill /opt/asknavidrome/
|
|
WORKDIR /opt/asknavidrome
|
|
|
|
# Activate Python Virtual Environment
|
|
ENV PATH="/opt/env/bin:$PATH"
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["python3", "app.py"]
|