-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
32 lines (23 loc) · 866 Bytes
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10.7-bullseye as build
RUN mkdir -p /builddir
WORKDIR /builddir
COPY ./ ./
RUN pip install -r requirements-dev.txt
RUN python -m build
FROM python:3.10.7-bullseye
ARG VERSION
LABEL name="gluetube" \
maintainer="ctomkow@gmail.com" \
version=${VERSION} \
summary="A lightweight python script scheduler" \
description="An orchestrator that runs and monitors python scripts with a shared key value store" \
url="https://github.com/ctomkow/gluetube"
RUN useradd --uid 1000 --create-home --shell /bin/bash gluetube
USER gluetube
ENV PATH "$PATH:/home/gluetube/.local/bin"
WORKDIR /home/gluetube
COPY --from=build /builddir/dist/gluetube-${VERSION}-py3-none-any.whl ./
RUN pip install --user gluetube-${VERSION}-py3-none-any.whl
RUN gluetube --configure
RUN gluetube db --init
CMD ["sh", "-c", "exec gluetube daemon -f"]