-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |