Commit 2850cd81 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

editing Dockerfile

parent f4402e22
Pipeline #1019 failed with stage
in 14 seconds
# base image # # base image
FROM alpine:latest #FROM alpine:latest
#
# maintainer ## maintainer
LABEL maintainer="david@lipn.fr" #LABEL maintainer="david@lipn.fr"
#
# variable ## variable
ENV AUTHOR Docker #ENV AUTHOR Docker
#
ADD database/ /usr/local/server/ #ADD database/ /usr/local/server/
#
ADD server/ /usr/local/server #ADD server/ /usr/local/server
#
WORKDIR /usr/local/server/ #WORKDIR /usr/local/server/
#
# Dépendances ## Dépendances
RUN apk update #RUN apk update
#
RUN apk add python3 #RUN apk add python3
RUN apk add py-pip #RUN apk add py-pip
RUN pip install mysql-connector-python #RUN pip install mysql-connector-python
RUN pip install get_docker_secret #RUN pip install get_docker_secret
RUN pip install docker #RUN pip install docker
#
CMD ["python3", "server.py"] #CMD ["python3", "server.py"]
#
# TO BUILD the image from parent directory "Softwares" Command : docker build --tag "tag" -f ./server/Dockerfile . ## 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 ## TO run the build in DOCKER : docker run --name "name" ser-app
#
#
#
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment