Skip to content
Snippets Groups Projects
Commit bba3496a authored by CHAMONT David's avatar CHAMONT David
Browse files

Merge branch 'docker' into 'master'

docker files

See merge request !6
parents 7dcfa4c5 83635a8c
No related branches found
No related tags found
1 merge request!6docker files
# Version DEV
FROM ubuntu:bionic
# Ensure use of bash
SHELL ["/bin/bash","-c"]
# aptget : so to avoid debconf interactive questions
#RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
ARG DEBIAN_FRONTEND=noninteractive
# aptget installations
RUN apt-get update \
&& apt-get install -y python3 python3-pip \
&& rm -rf /var/lib/apt/lists/*
# flask
RUN python3 -m pip install flask
EXPOSE 5000
ENV FLASK_APP=app/labelsTower.py
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
CMD [ "flask", "run", "--host", "0.0.0.0" ]
# Build Image
The command `build.sh` is expected to be launched within the `docker` directory. Each time a significant change is made to the `Dockerfile`, please increase the version number in all files.
# Check Image
The command `run.sh` is expected to be launched in the upper main directory.
# Share Image
The command `push.sh` is expected to be launched wherever you want, but only once an image is stable and usable by others.
#!/bin/bash
docker build -f Dockerfile.dev -t `cat image.txt` .
# --force-rm --no-cache
\ No newline at end of file
gitlab-registry.in2p3.fr/maitresnageurs/readme/labelstower:dev
\ No newline at end of file
#!/bin/bash
docker push `cat image.txt`
#!/bin/bash
# Flask opère sur le port 5000
docker run -it --rm -p 5000:5000 -v $PWD/..:/work -w /work `cat image.txt`
#docker run -it --rm -v $PWD/..:/work -w /work `cat image.txt`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment