-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mikolaj Buchwald
committed
Jun 8, 2021
1 parent
3d1db13
commit d0177ba
Showing
2 changed files
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-pip | ||
|
||
RUN pip3 install Flask | ||
|
||
ENV http_proxy=http:... | ||
ENV https_proxy=http:... | ||
ENV LC_ALL C.UTF-8 | ||
ENV LANG C.UTF-8 | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"] |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3.8' | ||
services: | ||
flask-minimal-mb: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
environment: | ||
PYTHONPATH: . | ||
ports: | ||
- '8080:5000' |