|
1 | | -FROM ubuntu:focal |
2 | | - |
3 | | -ENV DEBIAN_FRONTEND=noninteractive |
4 | | - |
5 | | -RUN apt-get -y update && apt-get -y upgrade |
6 | | - |
7 | | -RUN apt-get install -y -q tini curl python3 python3-pip |
8 | | - |
9 | | -ENV PYTHONDONTWRITEBYTECODE 1 |
10 | | - |
11 | | -ENV PYTHONUNBUFFERED 1 |
12 | | - |
13 | | -WORKDIR /usr/src/app |
14 | | - |
15 | | -ADD requirements.txt /usr/src/app |
16 | | - |
17 | | -RUN pip3 install --no-cache-dir -r requirements.txt |
18 | | - |
19 | | -ADD . /usr/src/app |
20 | | - |
21 | | -RUN useradd remote |
22 | | - |
23 | | -USER remote |
24 | | - |
25 | | -EXPOSE 6837 |
26 | | - |
27 | | -ENTRYPOINT ["tini", "--", "python3", "server.py", "--certificate=certificate/cert", "--privkey=certificate/key", "--chain=certificate/chain"] |
| 1 | +# Copyright 2020 Christopher Toth |
| 2 | +# |
| 3 | +# This file is part of NVDA Remote Access Relay Server. |
| 4 | +# |
| 5 | +# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms |
| 6 | +# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of |
| 7 | +# the License, or (at your option) any later version. |
| 8 | +# |
| 9 | +# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 10 | +# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero |
| 11 | +# General Public License for more details. |
| 12 | +# |
| 13 | +# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay |
| 14 | +# Server. If not, see <https://www.gnu.org/licenses/>. |
| 15 | + |
| 16 | +FROM ubuntu:focal |
| 17 | + |
| 18 | +ENV DEBIAN_FRONTEND=noninteractive |
| 19 | + |
| 20 | +RUN apt-get -y update && apt-get -y upgrade |
| 21 | + |
| 22 | +RUN apt-get install -y -q tini curl python3 python3-pip |
| 23 | + |
| 24 | +ENV PYTHONDONTWRITEBYTECODE 1 |
| 25 | + |
| 26 | +ENV PYTHONUNBUFFERED 1 |
| 27 | + |
| 28 | +WORKDIR /usr/src/app |
| 29 | + |
| 30 | +ADD requirements.txt /usr/src/app |
| 31 | + |
| 32 | +RUN pip3 install --no-cache-dir -r requirements.txt |
| 33 | + |
| 34 | +ADD . /usr/src/app |
| 35 | + |
| 36 | +RUN useradd remote |
| 37 | + |
| 38 | +USER remote |
| 39 | + |
| 40 | +EXPOSE 6837 |
| 41 | + |
| 42 | +ENTRYPOINT ["tini", "--", "python3", "server.py", "--certificate=certificate/cert", "--privkey=certificate/key", "--chain=certificate/chain"] |
0 commit comments