Skip to content

Commit

Permalink
Merge pull request #4 from MamMates/#3-recommender-model
Browse files Browse the repository at this point in the history
[#3] Food Recommendation Model
  • Loading branch information
putuwaw authored Dec 18, 2023
2 parents ab60c97 + 112cff9 commit dc1cdd7
Show file tree
Hide file tree
Showing 8 changed files with 1,342 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 7
commit-message:
prefix: "[deps-gh]: "

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 7
commit-message:
prefix: "[deps-docker]: "
37 changes: 37 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Docker Image

on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
branches:
- "main"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: putuwaw/mammates-food-recommendation
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM tensorflow/serving:2.14.0

ENV MODEL_NAME=food_rec
ENV TF_CPP_VMODULE=http_server=1

COPY /model /models/${MODEL_NAME}/1/

CMD ["tensorflow_model_server", "--rest_api_port=8504", "--model_name=food_rec", "--model_base_path=/models/food_rec"]
Loading

0 comments on commit dc1cdd7

Please sign in to comment.