2021-05-30 17:52:25 +02:00
|
|
|
FROM python:3.9-alpine
|
2020-06-20 03:42:14 +02:00
|
|
|
|
|
|
|
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
|
2020-06-20 03:42:14 +02:00
|
|
|
|
|
|
|
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" ]
|