mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 12:43:09 +01:00
ae01c5e418
Closes #652. Co-authored-by: James Newton <hello@jamesnewton.com>
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"]
|