Skip to content

Commit bbc729d

Browse files
committed
fix: privilege Docker rootless mode compatibility at the expense of an image ~150MB heavier
1 parent 5a4fa32 commit bbc729d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM alpine:latest
1+
FROM ubuntu:latest
22
WORKDIR /app
33
COPY requirements.txt requirements.txt
4-
RUN apk add python3-dev
5-
RUN apk add py3-pip
6-
RUN apk add gcc
7-
RUN apk add libc-dev
4+
RUN apt-get update && apt-get install -y \
5+
python3-pip \
6+
&& rm -rf /var/lib/apt/lists/*
87
RUN pip3 install -r requirements.txt
98
COPY . .
109
CMD ["python3", "main.py", "--fingerprint", "198e9fe586114844f6a4eaca5069b41a7ed43fb5a2df84892b69826d64573e39", "--path-license", "examples/license.lic", "--path-machine", "examples/machine.lic"]

0 commit comments

Comments
 (0)