Skip to content
Open

Name #23

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions answers.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# Answers

Nom:
Prénom:
NB:
Nom: SEWERYN
Prénom: Antoine
NB: 7

## 1.3
command:

docker build -t my-python-app .
docker run -it --rm --name my-running-app my-python-app
## 1.4
answer:
command:
command: docker run -it -e ENVIRONMENT='dev' --rm --name my-running-app -p 8080:8080 my-python-app

## 1.5
command:
command: command: docker run -it -e ENVIRONMENT='dev' --rm --name my-running-app -p 8080:8080 my-python-app

## 1.6
answer:
Expand Down
11 changes: 11 additions & 0 deletions app/back/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.7.1-stretch
WORKDIR /usr/MS_TP2/tp2/app/back

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "-u", "./webservice.py" ]