Skip to content
Snippets Groups Projects
Commit cafa8466 authored by Benedikt's avatar Benedikt
Browse files

changed docker file

parent a40aadf3
No related branches found
No related tags found
No related merge requests found
FROM python:3
FROM python:3.11
WORKDIR /usr/src/app
ENV GIT_SSL_NO_VERIFY=1
# WORKDIR /usr/src/app
ENV GIT_SSL_NO_VERIFY=1
# Set the environment variable for the HTTP proxy
ENV http_proxy="http://webproxy.bs.ptb.de:8080"
ENV https_proxy="http://webproxy.bs.ptb.de:8080"
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt #--proxy=webproxy.bs.ptb.de:8080 --no-cache-dir
# Set the environment variable for the NO_PROXY
# This ensures that the proxy is not used for ptb.de
ENV no_proxy="ptb.de"
#RUN curl --header "PRIVATE-TOKEN: FcuX-ACu_Lp928iy_1nG" "https://gitlab1.ptb.de/api/v4/projects/2806/repository/files/requirements.txt/raw?ref=main" -o requirements.txt
# Install any needed packages specified in requirements.txt
RUN git clone https://dockerPull:FcuX-ACu_Lp928iy_1nG@gitlab1.ptb.de/digitaldynamicmeasurement/pydccdisplayer.git
RUN pip install --proxy=webproxy.bs.ptb.de:8080 --no-cache-dir -r pydccdisplayer/requirements.txt
#COPY . .
COPY . .
EXPOSE 5003
#CMD [ "python3", "./DCCTableTool.py" ]
#CMD ["ls","./src"]
CMD [ "bokeh","serve","--show", "./src/","--port","5003","--allow-websocket-origin","*" ]
\ No newline at end of file
#WORKDIR ./pydccdisplayer/src
CMD ["bokeh", "serve", "pydccdisplayer/src/.", "--port", "5003", "--allow-websocket-origin", "*","--use-xheaders","--prefix","pydccdisplayer"]
bokeh~=3.0.3
bokeh~=3.3.10
pytest~=7.4.2
pytest-cov~=4.1.0
#-e git+https://pipPull:BMzhUMQZThk-wLy6KDvs@gitlab1.ptb.de/digitaldynamicmeasurement/dcc_XMLJSONConv.git@release#egg=dcc_XMLJSONConv
......
FROM python:3.11
# WORKDIR /usr/src/app
ENV GIT_SSL_NO_VERIFY=1
# Set the environment variable for the HTTP proxy
ENV http_proxy="http://webproxy.bs.ptb.de:8080"
ENV https_proxy="http://webproxy.bs.ptb.de:8080"
# Set the environment variable for the NO_PROXY
# This ensures that the proxy is not used for ptb.de
ENV no_proxy="ptb.de"
#RUN curl --header "PRIVATE-TOKEN: FcuX-ACu_Lp928iy_1nG" "https://gitlab1.ptb.de/api/v4/projects/2806/repository/files/requirements.txt/raw?ref=main" -o requirements.txt
# Install any needed packages specified in requirements.txt
RUN git clone https://dockerPull:FcuX-ACu_Lp928iy_1nG@gitlab1.ptb.de/digitaldynamicmeasurement/pydccdisplayer.git
RUN pip install -r pydccdisplayer/requirements.txt --no-cache-dir
COPY . .
EXPOSE 5003
CMD ["bokeh", "serve", "./pydccdisplayer/src/", "--port", "5003", "--allow-websocket-origin", "*","--use-xheaders"]
\ 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