Skip to content
Snippets Groups Projects
Commit 6f091dc8 authored by Mehdi Zaidi's avatar Mehdi Zaidi :speech_balloon:
Browse files

add readme

parent f66fee1d
No related branches found
No related tags found
No related merge requests found
# Mehdi ZAIDI FRENE25 grp G
# CTP 15/02/2023
## USAGE :
## Build the image with 'sudo docker build -t webcalc .'
## Start a container with 'sudo docker run --rm -d --name webcalc -p 8000:8000 webcalc'
## Send an http request to 'localhost:8000' to do maths
## exemple : curl -X POST localhost:8000 -H 'Content-Type: application/json' -d '{"operation": "PLUS", "op1": 3, "op2": 4}'
## When you're done, 'sudo docker container kill webcalc' to stop it.
## To execute tests : 'sudo docker run --rm -it webcalc tests.py'
# Mehdi ZAIDI FRENE25 groupe G
FROM debian:bullseye
RUN apt-get update && apt-get install -y python3 wget unzip && rm -r /var/lib/apt/lists/*
......
# Mehdi ZAIDI FRENE25 groupe G
## Usage
1. Build the image with `sudo docker build -t webcalc .`
2. Start a container with `sudo docker run --rm -d --name webcalc -p 8000:8000 webcalc`
3. Send an http request to `localhost:8000` to do maths
> exemple : `curl -X POST localhost:8000 -H 'Content-Type: application/json' -d '{"operation": "PLUS", "op1": 3, "op2": 4}'`
4. When you're done, `sudo docker container kill webcalc` to stop it.
To execute tests : `sudo docker run --rm -it webcalc tests.py`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment