aboutsummaryrefslogtreecommitdiffstats
path: root/core/Dockerfile
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-04-16 11:49:09 -0500
committerJesús <heckyel@hyperbola.info>2021-04-16 11:49:09 -0500
commit5a8e7e30d2a3f806520749b60c85077dbc1f5d3e (patch)
tree7d62bcecc6de15d79781a0ffd989bba4cfd97adb /core/Dockerfile
downloadyt-local-docker-5a8e7e30d2a3f806520749b60c85077dbc1f5d3e.tar.lz
yt-local-docker-5a8e7e30d2a3f806520749b60c85077dbc1f5d3e.tar.xz
yt-local-docker-5a8e7e30d2a3f806520749b60c85077dbc1f5d3e.zip
initial commit
Diffstat (limited to 'core/Dockerfile')
-rw-r--r--core/Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/Dockerfile b/core/Dockerfile
new file mode 100644
index 0000000..9bbd2e6
--- /dev/null
+++ b/core/Dockerfile
@@ -0,0 +1,29 @@
+FROM alpine:latest
+LABEL MAINTAINER="heckyel@riseup.net"
+
+ENV LANG C.UTF-8
+ENV LC_ALL C.UTF-8
+
+RUN apk add musl-dev build-base gcc libffi-dev python3-dev patch git py3-pip
+
+ARG APP_DIR="/srv/app"
+ARG YT_REPO="https://git.sr.ht/~heckyel/yt-local"
+ARG YT_BRANCH="master"
+
+RUN mkdir --parents "$APP_DIR"
+
+WORKDIR "$APP_DIR"
+
+RUN git clone --depth=1 "$YT_REPO" --branch "$YT_BRANCH" "$APP_DIR"
+RUN git show --oneline --no-patch
+RUN pip3 install -r requirements.txt
+
+COPY 0001.patch "$APP_DIR/0001.patch"
+RUN patch -Np1 -i "$APP_DIR/0001.patch"
+
+EXPOSE 8080
+
+COPY entrypoint.sh /
+RUN chmod u+x /entrypoint.sh
+
+ENTRYPOINT ["/entrypoint.sh"]