13 lines
406 B
Docker
13 lines
406 B
Docker
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
|
|
ADD package/docker/config.yaml /config/config.yaml
|
|
ADD package/docker/template.yaml /config/template.yaml
|
|
|
|
VOLUME /config
|
|
EXPOSE 8000/tcp
|
|
USER 1000
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/python3.9", "-m", "spaceapi_server", "/config/config.yaml" ]
|