Skip to content
Snippets Groups Projects
Commit f8bee355 authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Dockerize opaque flask app with docker-compose – first step

parent c6184976
No related branches found
No related tags found
No related merge requests found
# pull official base image
FROM python:3.6.9
# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# set work directory
WORKDIR /opaque
# Copy the current directory contents into the container at /daemon
COPY . /opaque
# Install requirements
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# set permissions for entrypoint
RUN chmod a+x flask-entrypoint.sh
version: '3.7'
services:
web:
build: .
container_name: web_flask_opaque
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque
volumes:
- .:/opaque
env_file:
- .env
ports:
- 5000:5000
command: bash flask-entrypoint.sh
#!/bin/bash -x
python opaque.py
......@@ -31,4 +31,4 @@ def test():
if __name__ == '__main__':
socketio.run(app)
socketio.run(app, host='0.0.0.0')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment