dockerfile mais enxuto
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:
10
Dockerfile
10
Dockerfile
@@ -1,16 +1,20 @@
|
||||
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
|
||||
WORKDIR /opt/asknavidrome
|
||||
RUN ls skill
|
||||
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/skill /opt/asknavidrome/
|
||||
COPY --from=build /opt/asknavidrome-cafofo/skill /opt/asknavidrome/
|
||||
WORKDIR /opt/asknavidrome
|
||||
|
||||
# Activate Python Virtual Environment
|
||||
|
||||
Reference in New Issue
Block a user