Skip to content
Open
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
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:8

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install express
RUN npm install mysql

COPY . .

EXPOSE 3000

CMD node webapi.js
28 changes: 14 additions & 14 deletions answers.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# Answers

Lastname:
Firstname:
Lastname: Valran
Firstname: Adrien

## 2.2
command:
command: $ docker run api

## 2.3
question:
command:
question: The image doesn't know in which port it has to connect
command: $ docker run -p 3000:3000 api

## 2.5
question:
command:
question: An image doesn't exist locally with the tag. We have to rename the image in order to match with the repositoty.
command: $ docker push Ilwyrr/test:testapi

## 2.6
command:
command: docker image prune -all

question:
command:
question: Docker has to download the given image from the repository.
command: $ docker run Ilwyrr/test:testapi

command:
command: docker run --detach Ilwyrr/test:testapi

## 2.7
question: We can get the status of containers with the docker -ps command
question:
question:
command:
command: docker ps -a

command:

## 2.8
question:
question: Linux
output:

## 3.1
Expand Down
Loading