fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Users in docker
[wolnelektury.git]
/
Dockerfile
diff --git
a/Dockerfile
b/Dockerfile
index
032024b
..
f916be0
100644
(file)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-1,8
+1,5
@@
FROM python:3.8 AS base
FROM python:3.8 AS base
-ARG UID=1000
-ARG GID=1000
-
RUN apt-get update && apt-get install -y \
git \
calibre \
RUN apt-get update && apt-get install -y \
git \
calibre \
@@
-21,9
+18,6
@@
RUN pip install --no-cache-dir \
django-debug-toolbar==3.2.2 \
python-bidi
django-debug-toolbar==3.2.2 \
python-bidi
-RUN addgroup --gid $GID app
-RUN adduser --gid $GID --home /app --uid $UID app
-
RUN apt-get install -y \
texlive-extra-utils \
texlive-lang-greek \
RUN apt-get install -y \
texlive-extra-utils \
texlive-lang-greek \
@@
-34,10
+28,8
@@
RUN apt-get install -y \
fonts-noto-core fonts-noto-extra
fonts-noto-core fonts-noto-extra
-USER app
-
# fonts
# fonts
-RUN cp -a /usr/local/lib/python*/site-packages/librarian/fonts /
app/.
fonts
+RUN cp -a /usr/local/lib/python*/site-packages/librarian/fonts /
usr/local/share/
fonts
RUN fc-cache
WORKDIR /app/src
RUN fc-cache
WORKDIR /app/src
@@
-46,12
+38,10
@@
WORKDIR /app/src
FROM base AS dev
#RUN pip install --no-cache-dir coverage
FROM base AS dev
#RUN pip install --no-cache-dir coverage
-USER app
FROM base AS prod
RUN pip install --no-cache-dir gunicorn
FROM base AS prod
RUN pip install --no-cache-dir gunicorn
-USER app
COPY src /app/src
COPY src /app/src