Notfellchen/Dockerfile

24 lines
609 B
Docker
Raw Permalink Normal View History

FROM python:3.11-slim
# Use 3.11 to avoid django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 or psycopg module
2024-04-13 00:12:37 +00:00
MAINTAINER Julian-Samuel Gebühr
ENV DOCKER_BUILD=true
RUN apt update
RUN apt install gettext -y
RUN apt install libpq-dev gcc -y
2024-04-13 00:12:37 +00:00
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"]