All Downloads are FREE. Search and download functionalities are using the official Maven repository.

python-blueplanet.app.Dockerfile.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
{{#supportPython2}}
FROM python:2-alpine
{{/supportPython2}}
{{^supportPython2}}
FROM python:3-alpine
{{/supportPython2}}

ARG GLTOKEN

RUN apk add curl bash
ENV SHELL /bin/bash

RUN mkdir /bp2 \
 && mkdir /bp2/data \
 && mkdir /bp2/log \
 && mkdir /bp2/src \
 && echo 'alias ll="ls -l"' >> ~/.bashrc
WORKDIR /bp2/src

COPY requirements.txt /bp2/src

{{#supportPython2}}
RUN pip install --extra-index-url https://GLTOKEN:[email protected]/simple --no-cache-dir -r requirements.txt
{{/supportPython2}}
{{^supportPython2}}
RUN pip3 install --extra-index-url https://GLTOKEN:[email protected]/simple --no-cache-dir -r requirements.txt
{{/supportPython2}}

COPY . /bp2/src

ENV SBIS=bpocore \
    SBI_bpocore_southbound-update=update_etc_hosts_multi_provider

EXPOSE {{serverPort}}

{{#supportPython2}}
ENTRYPOINT ["python"]
{{/supportPython2}}
{{^supportPython2}}
ENTRYPOINT ["python3"]
{{/supportPython2}}

CMD ["-B", "-m", "{{packageName}}"]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy