mirror of
https://github.com/FAUSheppy/tmnf-replay-server.git
synced 2025-12-05 22:51:37 +01:00
20 lines
421 B
Docker
20 lines
421 B
Docker
FROM python:3-alpine
|
|
|
|
RUN apk add --no-cache curl lzo-dev gcc libc-dev
|
|
|
|
WORKDIR /app
|
|
COPY ./ .
|
|
|
|
RUN pip install --no-cache-dir -U pip
|
|
RUN pip install --no-cache-dir --break-system-packages waitress
|
|
|
|
COPY req.txt .
|
|
RUN pip install --no-cache-dir -r req.txt
|
|
|
|
RUN ln -s /app/uploads/ /app/static/uploads
|
|
|
|
EXPOSE 5000/tcp
|
|
|
|
ENTRYPOINT ["waitress-serve"]
|
|
CMD ["--host", "0.0.0.0", "--port", "5000", "--call", "app:createApp"]
|