Dockerfile 599 Bytes
Newer Older
Ismail Moumni's avatar
Ismail Moumni committed
1
## base image
Ismail Moumni's avatar
Ismail Moumni committed
2
#FROM alpine:latest
Ismail Moumni's avatar
Ismail Moumni committed
3

Ismail Moumni's avatar
Ismail Moumni committed
4
5
## maintainer
#LABEL maintainer="david@lipn.fr"
Ismail Moumni's avatar
Ismail Moumni committed
6

Ismail Moumni's avatar
Ismail Moumni committed
7
8
## variable
#ENV AUTHOR Docker
Ismail Moumni's avatar
Ismail Moumni committed
9

Ismail Moumni's avatar
Ismail Moumni committed
10
#ADD database/ /usr/local/server/
Ismail Moumni's avatar
Ismail Moumni committed
11

Ismail Moumni's avatar
Ismail Moumni committed
12
#ADD server/ /usr/local/server
Ismail Moumni's avatar
Ismail Moumni committed
13

Ismail Moumni's avatar
Ismail Moumni committed
14
#WORKDIR /usr/local/server/
Ismail Moumni's avatar
Ismail Moumni committed
15

Ismail Moumni's avatar
Ismail Moumni committed
16
17
## Dépendances
#RUN apk update
Ismail Moumni's avatar
Ismail Moumni committed
18

Ismail Moumni's avatar
Ismail Moumni committed
19
20
21
22
23
#RUN apk add python3
#RUN apk add py-pip
#RUN pip install mysql-connector-python
#RUN pip install get_docker_secret
#RUN pip install docker
Ismail Moumni's avatar
Ismail Moumni committed
24

Ismail Moumni's avatar
Ismail Moumni committed
25
#CMD ["python3", "server.py"]
Ismail Moumni's avatar
Ismail Moumni committed
26

Ismail Moumni's avatar
Ismail Moumni committed
27
28
## TO BUILD the image from parent directory "Softwares" Command : docker build --tag "tag" -f ./server/Dockerfile . 
## TO run the build in DOCKER : docker run --name "name" ser-app