spaceapi-server/package/docker/Dockerfile

14 lines
406 B
Text
Raw Permalink Normal View History

2021-05-30 17:52:25 +02:00
FROM python:3.9-alpine
ADD spaceapi_server/ /spaceapi_server/
ADD setup.py /setup.py
RUN python setup.py install && mkdir -p /config/plugins && chmod 0755 -R /config
2021-05-30 17:52:25 +02:00
ADD package/docker/config.yaml /config/config.yaml
ADD package/docker/template.yaml /config/template.yaml
VOLUME /config
EXPOSE 8000/tcp
USER 1000
2021-05-30 17:52:25 +02:00
ENTRYPOINT [ "/usr/local/bin/python3.9", "-m", "spaceapi_server", "/config/config.yaml" ]