Skip to content

Commit 4c93e70

Browse files
authored
feat: Fix vulnerabilities, base image, and root user usage (#7)
Closes #3
1 parent 5e35e48 commit 4c93e70

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
FROM python:alpine3.12
1+
FROM python:alpine3.20
22

33
LABEL maintainer="[email protected]"
44
LABEL description="HuggingFace Hub Model Downloader"
55
LABEL url="https://github.com/amikos-tech/hf-model-downloader"
66

7+
RUN adduser -D appuser
8+
79
COPY docker-entrypoint.sh /
810
RUN pip install 'huggingface_hub[cli]' && \
9-
chmod +x /docker-entrypoint.sh
11+
chmod +x /docker-entrypoint.sh && \
12+
chown appuser:appuser /docker-entrypoint.sh
13+
14+
USER appuser
15+
1016

1117
ENTRYPOINT [ "/docker-entrypoint.sh" ]

0 commit comments

Comments
 (0)