2025-09-08 16:27:31 +01:00
|
|
|
FROM alpine:3.22.1 AS build
|
2022-08-05 16:37:56 +01:00
|
|
|
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
|
2025-09-08 16:27:31 +01:00
|
|
|
LABEL org.opencontainers.image.source=https://github.com/rosskouk/asknavidrome
|
2022-08-05 16:37:56 +01:00
|
|
|
|
|
|
|
|
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://github.com/rosskouk/asknavidrome.git
|
|
|
|
|
|
|
|
|
|
WORKDIR /opt/asknavidrome
|
|
|
|
|
|
|
|
|
|
RUN source ../env/bin/activate && pip --no-cache-dir install wheel && pip --no-cache-dir install -r skill/requirements-docker.txt
|
|
|
|
|
|
|
|
|
|
|
2025-09-08 16:27:31 +01:00
|
|
|
FROM alpine:3.22.1
|
2022-08-05 16:37:56 +01:00
|
|
|
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
|
2025-09-08 16:27:31 +01:00
|
|
|
LABEL org.opencontainers.image.source=https://github.com/rosskouk/asknavidrome
|
2022-08-05 16:37:56 +01:00
|
|
|
|
|
|
|
|
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"]
|