Commit a1894ae7 authored by David Mendez's avatar David Mendez
Browse files

Implement basic dockerfile

parent 67ab0a78
......@@ -6,10 +6,17 @@ RUN apt-get update
RUN apt-get install -y \
curl
WORKDIR /app_workdir
COPY requirements.txt requirements.txt
WORKDIR /app
COPY requirements.txt .
RUN useradd -m glados -u 2892
RUN chown -R glados:glados /app_workdir
RUN chown -R glados:glados /app
USER glados
ENV PATH="/home/glados/.local/bin:${PATH}"
RUN pip install --user -r requirements.txt
EXPOSE 5000
COPY . .
COPY configurations/minimal_dev_config.yml .
CMD CONFIG_FILE_PATH='/app/minimal_dev_config.yml' FLASK_APP=app flask run
\ No newline at end of file
......@@ -69,4 +69,4 @@ def create_app():
if __name__ == '__main__':
create_app()
flask_app = create_app()
......@@ -5,4 +5,7 @@ sql_alchemy:
database_uri: 'sqlite:///:memory:'
track_modifications: False
elasticsearch:
dry_run: True # If True, I will just print the data and not send anything to elasticsearch
\ No newline at end of file
dry_run: True # If True, I will just print the data and not send anything to elasticsearch
host: 'http://wp-p1m-50.ebi.ac.uk:9200'
admin_username: 'admin'
admin_password: '123456'
\ 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