summaryrefslogtreecommitdiffstats
path: root/server/Dockerfile
blob: 40881ad2af2835e42c3c351e25fa664699c0e55c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM ubuntu:latest

RUN apt update && apt install -y python3 python3-pip socat

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY app.py .
RUN chmod +x app.py

CMD [ "socat", "TCP-LISTEN:9000,fork", "EXEC:./app.py" ]