Raphael Maenle
85850a9d63
- routes defined in routes.py uses the <path:..> function to catch every non-empty url comming along - request.full_path is used to get the entire url, as <path:> would remove eg GET '?' from the url, which we don't want for the link forwarding. - request.full_path[1:] removes the '/' from the url
9 lines
353 B
Docker
9 lines
353 B
Docker
FROM python:3.8-slim-buster
|
|
RUN apt-get update && apt-get upgrade -y
|
|
RUN apt-get install gcc libmariadbclient-dev -y
|
|
RUN pip3 install google-oauth google-api-python-client
|
|
RUN pip3 install flask Flask-SQLAlchemy flask_migrate flask_wtf python-dotenv mysqlclient
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
EXPOSE 3001
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|