debian/bullseye
|
Last change
on this file since 7a831c3 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
|
| Line | |
|---|
| 1 | {{#supportPython2}}
|
|---|
| 2 | FROM python:2-alpine
|
|---|
| 3 | {{/supportPython2}}
|
|---|
| 4 | {{^supportPython2}}
|
|---|
| 5 | FROM python:3-alpine
|
|---|
| 6 | {{/supportPython2}}
|
|---|
| 7 |
|
|---|
| 8 | RUN mkdir -p /usr/src/app
|
|---|
| 9 | WORKDIR /usr/src/app
|
|---|
| 10 |
|
|---|
| 11 | COPY requirements.txt /usr/src/app/
|
|---|
| 12 |
|
|---|
| 13 | {{#supportPython2}}
|
|---|
| 14 | RUN pip install --no-cache-dir -r requirements.txt
|
|---|
| 15 | {{/supportPython2}}
|
|---|
| 16 | {{^supportPython2}}
|
|---|
| 17 | RUN pip3 install --no-cache-dir -r requirements.txt
|
|---|
| 18 | {{/supportPython2}}
|
|---|
| 19 |
|
|---|
| 20 | COPY . /usr/src/app
|
|---|
| 21 |
|
|---|
| 22 | EXPOSE {{serverPort}}
|
|---|
| 23 |
|
|---|
| 24 | {{#supportPython2}}
|
|---|
| 25 | ENTRYPOINT ["python"]
|
|---|
| 26 | {{/supportPython2}}
|
|---|
| 27 | {{^supportPython2}}
|
|---|
| 28 | ENTRYPOINT ["python3"]
|
|---|
| 29 | {{/supportPython2}}
|
|---|
| 30 |
|
|---|
| 31 | CMD ["-m", "{{packageName}}"]
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.