Skip to content

Conversation

@qianxuege
Copy link

@qianxuege qianxuege commented Nov 11, 2025

Summary

  • This PR aims to modify the Dockerfile so that it runs in our VM.

Changes

  • Changed original Dockerfile to dev.Dockerfile .
  • Created a new Dockerfile that uses gunicorn instead of flask to address the error shown in the screenshot (about using production WSGI server).
  • Removed calling ollama server in translator.py since that is being managed by the docker-compose.yml file
  • Fixed case check for detected_language
image

Validation

  • In VSCode, open the repo in container
  • run docker compose up --build in the terminal
  • open the browser it tells you to. For example:
image
  • append /?content=Dies%20ist%20eine%20Nachricht%20auf%20Deutsch to the end of the browser url and reload.
    • successful if can see a response in JSON. The response should look like:
      {"is_english":false,"translated_content":"This is a message in German."}
  • run docker compose down to close it afterwards.

Notes for deployment

  • Steps to deploy to linux server:
    • connect to campus vpn and ssh [email protected]
    • run ls to see if this repo already exists on the VM.
      • If not, git clone this repo.
    • cd llm-experiment-microservice-jack/
    • git pull
    • docker compose up --build -d to start container in detach mode

@fatbiscuit247 fatbiscuit247 self-assigned this Nov 11, 2025
Copy link

@fatbiscuit247 fatbiscuit247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, through codespace, I saw the expected LLM response when running docker compose to comfirm LLM was running, and also was able to ssh to our team

@fatbiscuit247 fatbiscuit247 merged commit 4c55ee8 into f25 Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants