a dockerfile has been built

This commit is contained in:
jbannon 2022-05-19 05:36:29 +00:00
parent bbf9a5d901
commit 286977169a
5 changed files with 36 additions and 6 deletions

2
.gitignore vendored
View file

@ -138,3 +138,5 @@ dmypy.json
*.DS_Store *.DS_Store
.idea/ .idea/
docker/*.whl

7
Makefile Normal file
View file

@ -0,0 +1,7 @@
build:
python setup.py bdist_wheel --dist-dir docker
docker: build
sudo docker build -t ytdl-sub:0.1 docker/
.PHONY: build

View file

@ -1,12 +1,25 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15 FROM python:3.10.4-alpine3.15
# Needed for py deps
RUN apk add gcc g++ make libffi-dev openssl-dev
USER ${PUID}:${PGID} USER ${PUID}:${PGID}
COPY . . COPY ytdl_sub-0.0.1-py3-none-any.whl .
RUN ls -lh
RUN pip install ytdl_sub-0.0.1-py3-none-any.whl
###############################################################################
# S6 OVERLAY
ARG S6_OVERLAY_VERSION=3.1.0.1
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
ENTRYPOINT ["/init"]
RUN apk add --no-cache --upgrade \
python3=3.10.4-r0 \
pip3=22.0.4-r0
RUN pip install -e .

View file

@ -42,3 +42,7 @@ lint =
docs = docs =
sphinx==4.5.0 sphinx==4.5.0
sphinx-rtd-theme==1.0.0 sphinx-rtd-theme==1.0.0
build =
setuptools
wheel

4
setup.py Normal file
View file

@ -0,0 +1,4 @@
from setuptools import setup
if __name__ == '__main__':
setup()