Move to GitHub

This commit is contained in:
Ross Stewart
2022-08-05 16:37:56 +01:00
commit 58885be096
18 changed files with 2092 additions and 0 deletions

32
Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
FROM alpine:3.15.0 as build
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
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
FROM alpine:3.15.0
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
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"]