feat: create directory in one go, don't use cache dir and use more standard entrypoint.sh
This commit is contained in:
@@ -9,15 +9,14 @@ RUN apt install gettext -y
|
|||||||
RUN apt install libpq-dev gcc -y
|
RUN apt install libpq-dev gcc -y
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mkdir /app/data
|
RUN mkdir /app/data/static -p
|
||||||
RUN mkdir /app/data/static
|
|
||||||
RUN mkdir /app/data/media
|
RUN mkdir /app/data/media
|
||||||
RUN pip install -e . # Without the -e the library static folder will not be copied by collectstatic!
|
RUN pip install --no-cache-dir -e . # Without the -e the library static folder will not be copied by collectstatic!
|
||||||
|
|
||||||
RUN nf collectstatic --noinput
|
RUN nf collectstatic --noinput
|
||||||
RUN nf compilemessages --ignore venv
|
RUN nf compilemessages --ignore venv
|
||||||
|
|
||||||
COPY docker/notfellchen.bash /bin/notfellchen
|
COPY docker/entrypoint.sh /bin/notfellchen
|
||||||
|
|
||||||
EXPOSE 7345
|
EXPOSE 7345
|
||||||
CMD ["notfellchen"]
|
CMD ["notfellchen"]
|
||||||
|
|||||||
Reference in New Issue
Block a user