Initial commit with development environment instructions
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Använd en officiell Python-image med Playwright-stöd
|
||||
FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Kopiera requirements först för att utnyttja Docker-cache
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Installera webbläsaren Chromium (Playwright)
|
||||
RUN playwright install chromium
|
||||
|
||||
# Kopiera resten av projektet
|
||||
COPY . .
|
||||
|
||||
# Skapa tom fil för noter om den inte finns
|
||||
RUN touch active_notes.txt
|
||||
|
||||
# Exponera Flask-porten
|
||||
EXPOSE 5000
|
||||
|
||||
# Kör skriptet (unbuffered för att se loggar i docker logs)
|
||||
CMD ["python3", "-u", "hedgeagent.py"]
|
||||
Reference in New Issue
Block a user