testando alterar dockerfile
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,29 +1,19 @@
|
||||
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 python3 -m venv env
|
||||
|
||||
RUN git clone https://g.nunks.org/nunks/asknavidrome-cafofo.git
|
||||
|
||||
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
|
||||
|
||||
FROM alpine:3.22.1
|
||||
|
||||
RUN apk add python3
|
||||
|
||||
COPY --from=build /opt/env /opt/env
|
||||
COPY --from=build /opt/asknavidrome/skill /opt/asknavidrome/
|
||||
|
||||
WORKDIR /opt/asknavidrome
|
||||
|
||||
# Activate Python Virtual Environment
|
||||
ENV PATH="/opt/env/bin:$PATH"
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENTRYPOINT ["python3", "app.py"]
|
||||
|
||||
Reference in New Issue
Block a user