Skip to content

Commit

Permalink
Kommentek
Browse files Browse the repository at this point in the history
  • Loading branch information
the1bit committed Apr 29, 2024
1 parent e2b68b2 commit ad4507b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Kod2.01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
python-version: '3.11'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
# You can test your matrix by printing the current Python version
Expand Down
12 changes: 9 additions & 3 deletions Kod2/01/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# Python 3.11
FROM python:3.11-slim-buster

# Kiinduló munkakönyvtár beállítása
WORKDIR /app

COPY requirements.txt ./
RUN pip install -r requirements.txt

# Fájlok másolása
COPY . .

# Függőségek telepítése
RUN pip install -r requirements.txt

# Port definiálása
EXPOSE 8000

# Flask alkalmazás beállítása
ENV FLASK_APP=app.py

# Flask alkalmazás indítása
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit ad4507b

Please sign in to comment.