Notfellchen/Dockerfile

22 lines
467 B
Docker
Raw Permalink Normal View History

2024-04-13 00:12:37 +00:00
FROM python:3-slim
MAINTAINER Julian-Samuel Gebühr
ENV DOCKER_BUILD=true
RUN apt update
RUN apt install gettext -y
COPY . /app
WORKDIR /app
2024-04-13 09:55:15 +00:00
RUN mkdir /app/data
RUN mkdir /app/data/static
RUN mkdir /app/data/media
2024-04-13 00:12:37 +00:00
RUN pip install -e . # Without the -e the library static folder will not be copied by collectstatic!
RUN nf collectstatic --noinput
RUN nf compilemessages --ignore venv
COPY docker/notfellchen.bash /bin/notfellchen
2024-04-13 10:11:14 +00:00
EXPOSE 7345
2024-04-13 00:12:37 +00:00
CMD ["notfellchen"]