source: src/webapp/mapservice/codegen/templates/Dockerfile.mustache@ 3a89adb

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

Moved mapservice to python flask with openapi generator

  • Property mode set to 100644
File size: 591 bytes
Line 
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.