Features: - Added page for an overview of establishments with a possibility to request a membership. - Added page for admins of an establishment to accept or deny those candidates. This is currently only usable via URL, the navigation to this site is not yet implemented in the HTML files. - Added page to add new establishments by providing a name. Improvements: - Better folder structure. - The establishment-specific overview can now be viewed with another URL, as well as some other pages. Bugfixes: - Seriously I don't know anymore what I fixed and what not. But it works just better now :) Future: - Angular has been added to separate the Flask-Backend with the frontend. Angular is currently not connected to the backend, but this will change in the future.
25 lines
503 B
Docker
25 lines
503 B
Docker
FROM python@sha256:53da4973924b6b3da6eb34f98e4e9dffdaf1cc05b468da73c69e3a862c36ee19
|
|
# python:3.10.10-slim-bullseye
|
|
RUN useradd costhive
|
|
|
|
WORKDIR /home/costhive
|
|
|
|
RUN apt update && apt -y upgrade
|
|
RUN apt install -y libpq-dev gcc g++
|
|
|
|
RUN python -m pip install pipenv
|
|
|
|
COPY boot.sh ./
|
|
RUN chmod +x boot.sh
|
|
|
|
COPY backend backend
|
|
|
|
ENV FLASK_APP run.py
|
|
|
|
RUN chown -R costhive:costhive ./
|
|
USER costhive
|
|
|
|
RUN cd backend && pipenv install && pipenv install gunicorn && cd ..
|
|
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["./boot.sh"] |