aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
blob: af3cf633b94faf11975e03e88a8ef83e48d072a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.14-alpine

RUN mkdir -p /var/lib/void

COPY [".", "/opt/void/"]
WORKDIR /opt/void

RUN pip install -q -r requirements.txt

# I don't know why, but in Docker, simple print() statements show nothing:
# https://stackoverflow.com/q/29663459
# Fixed by adding the -u flag:
CMD ["python3", "-u", "src/server.py", "--void", "/var/lib/void/void.state"]