Skip to content
Snippets Groups Projects
Commit a1faa3a3 authored by carignani's avatar carignani
Browse files

run in container

parent 70837d2e
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:latest
MAINTAINER ETSI CTI "cti_support@etsi.org"
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
locales \
python3-pip \
python3-dev \
build-essential \
python3-tosca-parser \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen
RUN echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
RUN echo "export LANG=en_US.UTF-8" >> ~/.bashrc
RUN echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc
COPY /src /app
COPY requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENTRYPOINT ["python"]
CMD ["web_app.py"]
\ No newline at end of file
Flask==0.10.1
python-docx
\ No newline at end of file
File moved
File moved
File moved
File moved
......@@ -134,3 +134,6 @@ def mk_doc2tosca():
archive.write(myfile, arcname=os.path.basename(myfile))
return send_file(zip_path, as_attachment=True)
if __name__ == '__main__':
app.run(debug=True,host='0.0.0.0')
\ 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