mirror of
https://github.com/FAUSheppy/tmnf-replay-server.git
synced 2025-12-05 22:51:37 +01:00
feat: switch to alpine image
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,19 +1,15 @@
|
|||||||
FROM python:3.9-slim-buster
|
FROM python:3-alpine
|
||||||
|
|
||||||
RUN apt update
|
RUN apk add --no-cache curl lzo-dev gcc libc-dev
|
||||||
RUN apt install python3-pip -y
|
|
||||||
RUN python3 -m pip install --upgrade pip
|
|
||||||
RUN apt install curl liblzo2-dev -y
|
|
||||||
RUN apt autoremove -y
|
|
||||||
RUN apt clean
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./ .
|
COPY ./ .
|
||||||
|
|
||||||
RUN python3 -m pip install waitress
|
RUN pip install --no-cache-dir -U pip
|
||||||
|
RUN pip install --no-cache-dir --break-system-packages waitress
|
||||||
|
|
||||||
COPY req.txt .
|
COPY req.txt .
|
||||||
RUN python3 -m pip install --no-cache-dir -r req.txt
|
RUN pip install --no-cache-dir -r req.txt
|
||||||
|
|
||||||
RUN ln -s /app/uploads/ /app/static/uploads
|
RUN ln -s /app/uploads/ /app/static/uploads
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user