source: src/mapservice/codegen/templates/Dockerfile.mustache@ 1cd45dd

debian/bullseye
Last change on this file since 1cd45dd was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Refactored mapservice

  • mapservice is a connexion python webservice with openapi defined api
  • mapservice-webclient is a angular app, consuming the openapi webservice mapservice
  • Property mode set to 100644
File size: 591 bytes
RevLine 
[3a89adb]1{{#supportPython2}}
2FROM python:2-alpine
3{{/supportPython2}}
4{{^supportPython2}}
5FROM python:3-alpine
6{{/supportPython2}}
7
8RUN mkdir -p /usr/src/app
9WORKDIR /usr/src/app
10
11COPY requirements.txt /usr/src/app/
12
13{{#supportPython2}}
14RUN pip install --no-cache-dir -r requirements.txt
15{{/supportPython2}}
16{{^supportPython2}}
17RUN pip3 install --no-cache-dir -r requirements.txt
18{{/supportPython2}}
19
20COPY . /usr/src/app
21
22EXPOSE {{serverPort}}
23
24{{#supportPython2}}
25ENTRYPOINT ["python"]
26{{/supportPython2}}
27{{^supportPython2}}
28ENTRYPOINT ["python3"]
29{{/supportPython2}}
30
31CMD ["-m", "{{packageName}}"]
Note: See TracBrowser for help on using the repository browser.