Skip to content
Snippets Groups Projects
Verified Commit 1c639575 authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Dockerize app

parent 10b0035c
No related branches found
No related tags found
No related merge requests found
Pipeline #9634 passed
FROM python:3.10
RUN useradd -m app
WORKDIR /home/app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY app.py qgram.py /home/app/
COPY examples/titles.json /home/app/examples/
RUN chown -R root:app /home/app
RUN chmod -R u=rX,g=rX,o=- /home/app
USER app:app
ENTRYPOINT ["gunicorn", "-w", "4", "-b", "0.0.0.0", "app:app"]
TAG=0.1.0
build:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t gitlab.sauerburger.com:5049/frank/wakefield-movie-recommender:$(TAG) .
push: build
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker push gitlab.sauerburger.com:5049/frank/wakefield-movie-recommender:$(TAG)
flask~=2.1.2
gunicorn~=20.1.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment