-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FY2024向け加筆修正および2023 bootcampにて気づいた誤植・反省点の修正 (#128)
* typo等の修正、およびdocker-composeの項を改訂 * Add 2024 docker text * Docker/docker-compose の項を加筆修正・体裁の整え --------- Co-authored-by: Akira Inamori <ainamori@iij.ad.jp>
- Loading branch information
1 parent
04fa228
commit 8707849
Showing
9 changed files
with
472 additions
and
231 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 +1,12 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM python:3.7-alpine | ||
FROM python:3.11-slim | ||
WORKDIR /code | ||
|
||
ENV FLASK_APP=app.py | ||
ENV FLASK_RUN_HOST=0.0.0.0 | ||
RUN apk add --no-cache gcc musl-dev linux-headers | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
EXPOSE 5000 | ||
COPY . . | ||
COPY app.py app.py | ||
CMD ["flask", "run"] |
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
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
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
Oops, something went wrong.