testando alterar dockerfile
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled

This commit is contained in:
2025-11-08 20:44:27 -03:00
parent 46e9203677
commit 4e9d03e774

View File

@@ -1,29 +1,19 @@
FROM alpine:3.22.1 AS build FROM alpine:3.22.1 AS build
RUN apk add python3 py3-pip git build-base python3-dev libffi-dev openssl-dev RUN apk add python3 py3-pip git build-base python3-dev libffi-dev openssl-dev
WORKDIR /opt WORKDIR /opt
RUN python3 -m venv env RUN python3 -m venv env
RUN git clone https://g.nunks.org/nunks/asknavidrome-cafofo.git RUN git clone https://g.nunks.org/nunks/asknavidrome-cafofo.git
WORKDIR /opt/asknavidrome WORKDIR /opt/asknavidrome
RUN ls skill
RUN source ../env/bin/activate && pip --no-cache-dir install wheel && pip --no-cache-dir install -r skill/requirements-docker.txt 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 FROM alpine:3.22.1
RUN apk add python3 RUN apk add python3
COPY --from=build /opt/env /opt/env COPY --from=build /opt/env /opt/env
COPY --from=build /opt/asknavidrome/skill /opt/asknavidrome/ COPY --from=build /opt/asknavidrome/skill /opt/asknavidrome/
WORKDIR /opt/asknavidrome WORKDIR /opt/asknavidrome
# Activate Python Virtual Environment # Activate Python Virtual Environment
ENV PATH="/opt/env/bin:$PATH" ENV PATH="/opt/env/bin:$PATH"
EXPOSE 5000 EXPOSE 5000
ENTRYPOINT ["python3", "app.py"] ENTRYPOINT ["python3", "app.py"]