mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-18 08:02:51 +01:00
18 lines
327 B
Docker
18 lines
327 B
Docker
|
FROM python:3-alpine
|
||
|
|
||
|
RUN adduser -D -H -u 10000 pylink
|
||
|
|
||
|
VOLUME /pylink
|
||
|
|
||
|
COPY . /pylink-src
|
||
|
|
||
|
RUN cd /pylink-src && pip3 install --no-cache-dir -r requirements-docker.txt
|
||
|
RUN cd /pylink-src && python3 setup.py install
|
||
|
RUN rm -r /pylink-src
|
||
|
|
||
|
USER pylink
|
||
|
WORKDIR /pylink
|
||
|
|
||
|
# Run in no-PID file mode by default
|
||
|
CMD ["pylink", "-n"]
|