a dockerfile has been built
This commit is contained in:
parent
bbf9a5d901
commit
286977169a
5 changed files with 36 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -138,3 +138,5 @@ dmypy.json
|
|||
|
||||
*.DS_Store
|
||||
.idea/
|
||||
|
||||
docker/*.whl
|
||||
|
|
|
|||
7
Makefile
Normal file
7
Makefile
Normal 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
|
||||
|
|
@ -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}
|
||||
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 .
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -42,3 +42,7 @@ lint =
|
|||
docs =
|
||||
sphinx==4.5.0
|
||||
sphinx-rtd-theme==1.0.0
|
||||
build =
|
||||
setuptools
|
||||
wheel
|
||||
|
||||
|
|
|
|||
4
setup.py
Normal file
4
setup.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from setuptools import setup
|
||||
|
||||
if __name__ == '__main__':
|
||||
setup()
|
||||
Loading…
Reference in a new issue